diff options
| author | Maxwell Anderson <maxwell.brayden.anderson@gmail.com> | 2018-11-01 12:35:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-01 12:35:01 -0600 |
| commit | 02340cc89101b33c1d219aa65a3eb09096bcaffe (patch) | |
| tree | d1a960f6e1502896021d8ecb633d79bda981d76a | |
| parent | 98ce3348d9c066bf08892bd320620cab10266ee9 (diff) | |
| download | rust-02340cc89101b33c1d219aa65a3eb09096bcaffe.tar.gz rust-02340cc89101b33c1d219aa65a3eb09096bcaffe.zip | |
fix comment spacing
| -rw-r--r-- | clippy_lints/src/literal_representation.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clippy_lints/src/literal_representation.rs b/clippy_lints/src/literal_representation.rs index 9c319d64b32..7b0c9523ef0 100644 --- a/clippy_lints/src/literal_representation.rs +++ b/clippy_lints/src/literal_representation.rs @@ -557,7 +557,8 @@ impl LiteralRepresentation { // Lint for Literals with a hex-representation of 2 or 3 digits let f = &digits[0..1]; // first digit let s = &digits[1..]; // suffix - // Powers of 2 + + // Powers of 2 if ((f.eq("1") || f.eq("2") || f.eq("4") || f.eq("8")) && s.chars().all(|c| c == '0')) // Powers of 2 minus 1 || ((f.eq("1") || f.eq("3") || f.eq("7") || f.eq("F")) && s.chars().all(|c| c == 'F')) @@ -569,7 +570,8 @@ impl LiteralRepresentation { let f = &digits[0..1]; // first digit let m = &digits[1..digits.len() - 1]; // middle digits, except last let s = &digits[1..]; // suffix - // Powers of 2 with a margin of +15/-16 + + // Powers of 2 with a margin of +15/-16 if ((f.eq("1") || f.eq("2") || f.eq("4") || f.eq("8")) && m.chars().all(|c| c == '0')) || ((f.eq("1") || f.eq("3") || f.eq("7") || f.eq("F")) && m.chars().all(|c| c == 'F')) // Lint for representations with only 0s and Fs, while allowing 7 as the first |
