We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 611b376 commit 19844a0Copy full SHA for 19844a0
num_enum_derive/src/parsing.rs
@@ -32,7 +32,7 @@ impl EnumInfo {
32
return Ok(false);
33
} else if let Ok(bits) = suffix.parse::<u32>() {
34
let variants = 1usize.checked_shl(bits);
35
- return Ok(variants.map_or(false, |v| {
+ return Ok(variants.is_some_and(|v| {
36
v == self
37
.variants
38
.iter()
0 commit comments