2021-03-25 13:29:11 -05:00
|
|
|
error: casting integer literal to `i32` is unnecessary
|
2019-08-04 01:24:23 -05:00
|
|
|
--> $DIR/unnecessary_cast.rs:6:5
|
|
|
|
|
|
|
|
|
LL | 1i32 as i32;
|
2021-03-25 13:29:11 -05:00
|
|
|
| ^^^^^^^^^^^ help: try: `1_i32`
|
2019-08-04 01:24:23 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: casting float literal to `f32` is unnecessary
|
2019-08-04 01:24:23 -05:00
|
|
|
--> $DIR/unnecessary_cast.rs:7:5
|
|
|
|
|
|
|
|
|
LL | 1f32 as f32;
|
2021-03-25 13:29:11 -05:00
|
|
|
| ^^^^^^^^^^^ help: try: `1_f32`
|
2019-08-04 01:24:23 -05:00
|
|
|
|
|
|
|
error: casting to the same type is unnecessary (`bool` -> `bool`)
|
|
|
|
--> $DIR/unnecessary_cast.rs:8:5
|
|
|
|
|
|
|
|
|
LL | false as bool;
|
2021-03-25 13:29:11 -05:00
|
|
|
| ^^^^^^^^^^^^^ help: try: `false`
|
2019-08-04 01:24:23 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|