Skip to content

Commit b6b97e5

Browse files
committed
format code
1 parent 6c1f89e commit b6b97e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/literal_representation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ impl LiteralRepresentation {
557557
// Lint for Literals with a hex-representation of 2 or 3 digits
558558
let f = &digits[0..1]; // first digit
559559
let s = &digits[1..]; // suffix
560-
560+
561561
// Powers of 2
562562
if ((f.eq("1") || f.eq("2") || f.eq("4") || f.eq("8")) && s.chars().all(|c| c == '0'))
563563
// Powers of 2 minus 1
@@ -570,7 +570,7 @@ impl LiteralRepresentation {
570570
let f = &digits[0..1]; // first digit
571571
let m = &digits[1..digits.len() - 1]; // middle digits, except last
572572
let s = &digits[1..]; // suffix
573-
573+
574574
// Powers of 2 with a margin of +15/-16
575575
if ((f.eq("1") || f.eq("2") || f.eq("4") || f.eq("8")) && m.chars().all(|c| c == '0'))
576576
|| ((f.eq("1") || f.eq("3") || f.eq("7") || f.eq("F")) && m.chars().all(|c| c == 'F'))

0 commit comments

Comments
 (0)