summaryrefslogtreecommitdiff
path: root/rust/src/string.rs
diff options
context:
space:
mode:
authorMichael Krasnitski <michael.krasnitski@gmail.com>2024-04-16 19:32:04 -0400
committerKyle Martin <krm504@nyu.edu>2024-05-09 13:11:41 -0400
commit29b62677dad48aa4d55ad2dae5d176d9880216bd (patch)
treef205a5f4ebb7e71ea132fe06a7076c70616d3c62 /rust/src/string.rs
parent608f261e6bca5869e748d4509da92a5717dce75d (diff)
Fix clippy warnings and run rustfmt
Diffstat (limited to 'rust/src/string.rs')
-rw-r--r--rust/src/string.rs4
1 files changed, 4 insertions, 0 deletions
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 {