diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/string.rs b/rust/src/string.rs index c0d6daba..3bda6a81 100644 --- a/rust/src/string.rs +++ b/rust/src/string.rs @@ -101,11 +101,11 @@ impl BnString { } pub fn len(&self) -> usize { - self.as_ref().len() + self.as_str().len() } pub fn is_empty(&self) -> bool { - self.as_ref().is_empty() + self.as_str().is_empty() } } |
