diff --git a/src/data/setbundle/code.rs b/src/data/setbundle/code.rs index bd00b7b..5a78438 100644 --- a/src/data/setbundle/code.rs +++ b/src/data/setbundle/code.rs @@ -38,11 +38,7 @@ impl CardCode { pub fn is_valid(&self) -> bool { let is_ascii = self.full.is_ascii(); - let is_long = match self.full.len() { - 7 => true, - 9 => true, - _ => false, - }; + let is_long = matches!(self.full.len(), 7 | 9); is_ascii && is_long }