mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-14 07:12:51 +00:00
Allow hex literals to pass w/ groups of 2
This commit is contained in:
parent
db8380c4a0
commit
f5a88b6de5
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ impl LiteralDigitGrouping {
|
||||||
|
|
||||||
let first = groups.next().expect("At least one group");
|
let first = groups.next().expect("At least one group");
|
||||||
|
|
||||||
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i % 4 != 0) {
|
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 || i != 2) {
|
||||||
return Err(WarningType::UnusualByteGrouping);
|
return Err(WarningType::UnusualByteGrouping);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue