Integrate suggestions from code review
This commit is contained in:
parent
e7e4b35bdf
commit
312bbff696
8 changed files with 19 additions and 19 deletions
|
|
@ -4,7 +4,7 @@ error: digits of hex or binary literal not grouped by four
|
|||
LL | 0x1_234_567,
|
||||
| ^^^^^^^^^^^ help: consider: `0x0123_4567`
|
||||
|
|
||||
= note: `-D clippy::unusual-byte-grouping` implied by `-D warnings`
|
||||
= note: `-D clippy::unusual-byte-groupings` implied by `-D warnings`
|
||||
|
||||
error: digits of hex or binary literal not grouped by four
|
||||
--> $DIR/large_digit_groups.rs:22:9
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
fn main() {
|
||||
let ok1 = 0xABCD;
|
||||
let ok3 = 0xabcd;
|
||||
let ok4 = 0xabcd_i32;
|
||||
let ok5 = 0xABCD_u32;
|
||||
let ok5 = 0xABCD_isize;
|
||||
let ok3 = 0xab_cd;
|
||||
let ok4 = 0xab_cd_i32;
|
||||
let ok5 = 0xAB_CD_u32;
|
||||
let ok5 = 0xAB_CD_isize;
|
||||
let fail1 = 0xabCD;
|
||||
let fail2 = 0xabCD_u32;
|
||||
let fail2 = 0xabCD_isize;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ error: digits of hex or binary literal not grouped by four
|
|||
LL | let fail24 = 0xAB_ABC_AB;
|
||||
| ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
|
||||
|
|
||||
= note: `-D clippy::unusual-byte-grouping` implied by `-D warnings`
|
||||
= note: `-D clippy::unusual-byte-groupings` implied by `-D warnings`
|
||||
|
||||
error: digits of hex or binary literal not grouped by four
|
||||
--> $DIR/literals.rs:38:18
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error: digits of hex or binary literal not grouped by four
|
|||
LL | 0x1_234_567,
|
||||
| ^^^^^^^^^^^ help: consider: `0x0123_4567`
|
||||
|
|
||||
= note: `-D clippy::unusual-byte-grouping` implied by `-D warnings`
|
||||
= note: `-D clippy::unusual-byte-groupings` implied by `-D warnings`
|
||||
|
||||
error: long literal lacking separators
|
||||
--> $DIR/unreadable_literal.rs:25:17
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue