|
1 | 1 | error: identical conversion |
2 | | - --> $DIR/identity_conversion.rs:4:13 |
| 2 | + --> $DIR/identity_conversion.rs:6:13 |
3 | 3 | | |
4 | 4 | LL | let _ = T::from(val); |
5 | 5 | | ^^^^^^^^^^^^ help: consider removing `T::from()`: `val` |
6 | 6 | | |
7 | 7 | note: lint level defined here |
8 | | - --> $DIR/identity_conversion.rs:1:9 |
| 8 | + --> $DIR/identity_conversion.rs:3:9 |
9 | 9 | | |
10 | 10 | LL | #![deny(clippy::identity_conversion)] |
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
12 | 12 |
|
13 | 13 | error: identical conversion |
14 | | - --> $DIR/identity_conversion.rs:5:5 |
| 14 | + --> $DIR/identity_conversion.rs:7:5 |
15 | 15 | | |
16 | 16 | LL | val.into() |
17 | 17 | | ^^^^^^^^^^ help: consider removing `.into()`: `val` |
18 | 18 |
|
19 | 19 | error: identical conversion |
20 | | - --> $DIR/identity_conversion.rs:17:22 |
| 20 | + --> $DIR/identity_conversion.rs:19:22 |
21 | 21 | | |
22 | 22 | LL | let _: i32 = 0i32.into(); |
23 | 23 | | ^^^^^^^^^^^ help: consider removing `.into()`: `0i32` |
24 | 24 |
|
25 | 25 | error: identical conversion |
26 | | - --> $DIR/identity_conversion.rs:49:21 |
| 26 | + --> $DIR/identity_conversion.rs:51:21 |
27 | 27 | | |
28 | 28 | LL | let _: String = "foo".to_string().into(); |
29 | 29 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `"foo".to_string()` |
30 | 30 |
|
31 | 31 | error: identical conversion |
32 | | - --> $DIR/identity_conversion.rs:50:21 |
| 32 | + --> $DIR/identity_conversion.rs:52:21 |
33 | 33 | | |
34 | 34 | LL | let _: String = From::from("foo".to_string()); |
35 | 35 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `From::from()`: `"foo".to_string()` |
36 | 36 |
|
37 | 37 | error: identical conversion |
38 | | - --> $DIR/identity_conversion.rs:51:13 |
| 38 | + --> $DIR/identity_conversion.rs:53:13 |
39 | 39 | | |
40 | 40 | LL | let _ = String::from("foo".to_string()); |
41 | 41 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `"foo".to_string()` |
42 | 42 |
|
43 | 43 | error: identical conversion |
44 | | - --> $DIR/identity_conversion.rs:52:13 |
| 44 | + --> $DIR/identity_conversion.rs:54:13 |
45 | 45 | | |
46 | 46 | LL | let _ = String::from(format!("A: {:04}", 123)); |
47 | 47 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("A: {:04}", 123)` |
48 | 48 |
|
49 | 49 | error: identical conversion |
50 | | - --> $DIR/identity_conversion.rs:53:13 |
| 50 | + --> $DIR/identity_conversion.rs:55:13 |
51 | 51 | | |
52 | 52 | LL | let _ = "".lines().into_iter(); |
53 | 53 | | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `"".lines()` |
54 | 54 |
|
55 | 55 | error: identical conversion |
56 | | - --> $DIR/identity_conversion.rs:54:13 |
| 56 | + --> $DIR/identity_conversion.rs:56:13 |
57 | 57 | | |
58 | 58 | LL | let _ = vec![1, 2, 3].into_iter().into_iter(); |
59 | 59 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `vec![1, 2, 3].into_iter()` |
60 | 60 |
|
61 | 61 | error: identical conversion |
62 | | - --> $DIR/identity_conversion.rs:55:21 |
| 62 | + --> $DIR/identity_conversion.rs:57:21 |
63 | 63 | | |
64 | 64 | LL | let _: String = format!("Hello {}", "world").into(); |
65 | 65 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `format!("Hello {}", "world")` |
|
0 commit comments