We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0f8db commit e7e4b35Copy full SHA for e7e4b35
clippy_lints/src/literal_representation.rs
@@ -368,7 +368,7 @@ impl LiteralDigitGrouping {
368
369
let first = groups.next().expect("At least one group");
370
371
- if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 || i != 2) {
+ if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 && i != 2) {
372
return Err(WarningType::UnusualByteGrouping);
373
}
374
0 commit comments