From 29b62677dad48aa4d55ad2dae5d176d9880216bd Mon Sep 17 00:00:00 2001 From: Michael Krasnitski Date: Tue, 16 Apr 2024 19:32:04 -0400 Subject: Fix clippy warnings and run rustfmt --- rust/src/string.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/src/string.rs') diff --git a/rust/src/string.rs b/rust/src/string.rs index 75942da9..96830ca5 100644 --- a/rust/src/string.rs +++ b/rust/src/string.rs @@ -94,6 +94,10 @@ impl BnString { pub fn len(&self) -> usize { self.as_ref().len() } + + pub fn is_empty(&self) -> bool { + self.as_ref().is_empty() + } } impl Drop for BnString { -- cgit v1.3.1