Skip to content

Commit e7e4b35

Browse files
committed
Fix logic mistake
1 parent 0c0f8db commit e7e4b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/literal_representation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ impl LiteralDigitGrouping {
368368

369369
let first = groups.next().expect("At least one group");
370370

371-
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 || i != 2) {
371+
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 && i != 2) {
372372
return Err(WarningType::UnusualByteGrouping);
373373
}
374374

0 commit comments

Comments
 (0)