Skip to content

Commit a8dde63

Browse files
committed
Address clippy complaints in representations.rs by fixing stacks_common guarded_string macro
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 2ba8956 commit a8dde63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stacks-common/src/util/macros.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ macro_rules! guarded_string {
168168
pub fn len(&self) -> u8 {
169169
u8::try_from(self.as_str().len()).unwrap()
170170
}
171+
172+
pub fn is_empty(&self) -> bool {
173+
self.len() == 0
174+
}
171175
}
172176

173177
impl Deref for $Name {

0 commit comments

Comments
 (0)