diff options
| author | Michael Krasnitski <michael.krasnitski@gmail.com> | 2024-04-16 19:32:04 -0400 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2024-05-09 13:11:41 -0400 |
| commit | 29b62677dad48aa4d55ad2dae5d176d9880216bd (patch) | |
| tree | f205a5f4ebb7e71ea132fe06a7076c70616d3c62 /rust/src/string.rs | |
| parent | 608f261e6bca5869e748d4509da92a5717dce75d (diff) | |
Fix clippy warnings and run rustfmt
Diffstat (limited to 'rust/src/string.rs')
| -rw-r--r-- | rust/src/string.rs | 4 |
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 { |
