Skip to content

Commit f8ab5ac

Browse files
committed
Allow len_without_is_empty to make clippy happy.
1 parent 0ec6662 commit f8ab5ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mod serde_support;
2121
#[repr(transparent)]
2222
pub struct NonEmptyString(String);
2323

24+
#[allow(clippy::len_without_is_empty)] // is_empty would always returns false so it seems a bit silly to have it.
2425
impl NonEmptyString {
2526
/// Attempts to create a new NonEmptyString.
2627
/// If the given `string` is empty, `Err` is returned, containing the original `String`, `Ok` otherwise.

0 commit comments

Comments
 (0)