We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ec6662 commit f8ab5acCopy full SHA for f8ab5ac
src/lib.rs
@@ -21,6 +21,7 @@ mod serde_support;
21
#[repr(transparent)]
22
pub struct NonEmptyString(String);
23
24
+#[allow(clippy::len_without_is_empty)] // is_empty would always returns false so it seems a bit silly to have it.
25
impl NonEmptyString {
26
/// Attempts to create a new NonEmptyString.
27
/// If the given `string` is empty, `Err` is returned, containing the original `String`, `Ok` otherwise.
0 commit comments