From 2af734dfb1410b83fbbd8862696128250fa97fad Mon Sep 17 00:00:00 2001 From: CPunisher <1343316114@qq.com> Date: Sat, 7 Sep 2024 13:11:22 +0800 Subject: [PATCH] Avoid _ => false --- src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 16de97d..6c09a2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -780,7 +780,12 @@ impl Repr { Self::ArcStr(arc_str) => arc_str.is_empty(), Self::ArcString(arc_string) => arc_string.is_empty(), Self::StaticStr(s) => s.is_empty(), - _ => false, + Self::Inline1 { .. } => false, + Self::Inline2 { .. } => false, + Self::Inline4 { .. } => false, + Self::Inline8 { .. } => false, + Self::Inline16 { .. } => false, + Self::Inline32 { .. } => false, } }