Skip to content

Commit 02340cc

Browse files
authored
fix comment spacing
1 parent 98ce334 commit 02340cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clippy_lints/src/literal_representation.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ 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-
// Powers of 2
560+
561+
// Powers of 2
561562
if ((f.eq("1") || f.eq("2") || f.eq("4") || f.eq("8")) && s.chars().all(|c| c == '0'))
562563
// Powers of 2 minus 1
563564
|| ((f.eq("1") || f.eq("3") || f.eq("7") || f.eq("F")) && s.chars().all(|c| c == 'F'))
@@ -569,7 +570,8 @@ impl LiteralRepresentation {
569570
let f = &digits[0..1]; // first digit
570571
let m = &digits[1..digits.len() - 1]; // middle digits, except last
571572
let s = &digits[1..]; // suffix
572-
// Powers of 2 with a margin of +15/-16
573+
574+
// Powers of 2 with a margin of +15/-16
573575
if ((f.eq("1") || f.eq("2") || f.eq("4") || f.eq("8")) && m.chars().all(|c| c == '0'))
574576
|| ((f.eq("1") || f.eq("3") || f.eq("7") || f.eq("F")) && m.chars().all(|c| c == 'F'))
575577
// Lint for representations with only 0s and Fs, while allowing 7 as the first

0 commit comments

Comments
 (0)