Skip to content

Commit 9ff4581

Browse files
committed
Test for unnecessary_cast of hex int literal.
1 parent 36b6598 commit 9ff4581

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/ui/unnecessary_cast_fixable.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ fn main() {
1414
&v as &[i32];
1515
1.0 as f64;
1616
1 as u64;
17+
0x42 as f32;
1718
}

tests/ui/unnecessary_cast_fixable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ fn main() {
1414
&v as &[i32];
1515
1.0 as f64;
1616
1 as u64;
17+
0x42 as f32;
1718
}

0 commit comments

Comments
 (0)