1
1
error: useless conversion to the same type: `T`
2
- --> tests/ui/useless_conversion_try.rs:5 :13
2
+ --> tests/ui/useless_conversion_try.rs:9 :13
3
3
|
4
4
LL | let _ = T::try_from(val).unwrap();
5
5
| ^^^^^^^^^^^^^^^^
@@ -12,63 +12,63 @@ LL | #![deny(clippy::useless_conversion)]
12
12
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
13
13
14
14
error: useless conversion to the same type: `T`
15
- --> tests/ui/useless_conversion_try.rs:7 :5
15
+ --> tests/ui/useless_conversion_try.rs:11 :5
16
16
|
17
17
LL | val.try_into().unwrap()
18
18
| ^^^^^^^^^^^^^^
19
19
|
20
20
= help: consider removing `.try_into()`
21
21
22
22
error: useless conversion to the same type: `std::string::String`
23
- --> tests/ui/useless_conversion_try.rs:30 :21
23
+ --> tests/ui/useless_conversion_try.rs:34 :21
24
24
|
25
25
LL | let _: String = "foo".to_string().try_into().unwrap();
26
26
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
27
|
28
28
= help: consider removing `.try_into()`
29
29
30
30
error: useless conversion to the same type: `std::string::String`
31
- --> tests/ui/useless_conversion_try.rs:32 :21
31
+ --> tests/ui/useless_conversion_try.rs:36 :21
32
32
|
33
33
LL | let _: String = TryFrom::try_from("foo".to_string()).unwrap();
34
34
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35
35
|
36
36
= help: consider removing `TryFrom::try_from()`
37
37
38
38
error: useless conversion to the same type: `std::string::String`
39
- --> tests/ui/useless_conversion_try.rs:34 :13
39
+ --> tests/ui/useless_conversion_try.rs:38 :13
40
40
|
41
41
LL | let _ = String::try_from("foo".to_string()).unwrap();
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
|
44
44
= help: consider removing `String::try_from()`
45
45
46
46
error: useless conversion to the same type: `std::string::String`
47
- --> tests/ui/useless_conversion_try.rs:36 :13
47
+ --> tests/ui/useless_conversion_try.rs:40 :13
48
48
|
49
49
LL | let _ = String::try_from(format!("A: {:04}", 123)).unwrap();
50
50
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51
51
|
52
52
= help: consider removing `String::try_from()`
53
53
54
54
error: useless conversion to the same type: `std::string::String`
55
- --> tests/ui/useless_conversion_try.rs:38 :21
55
+ --> tests/ui/useless_conversion_try.rs:42 :21
56
56
|
57
57
LL | let _: String = format!("Hello {}", "world").try_into().unwrap();
58
58
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
59
|
60
60
= help: consider removing `.try_into()`
61
61
62
62
error: useless conversion to the same type: `std::string::String`
63
- --> tests/ui/useless_conversion_try.rs:40 :21
63
+ --> tests/ui/useless_conversion_try.rs:44 :21
64
64
|
65
65
LL | let _: String = String::new().try_into().unwrap();
66
66
| ^^^^^^^^^^^^^^^^^^^^^^^^
67
67
|
68
68
= help: consider removing `.try_into()`
69
69
70
70
error: useless conversion to the same type: `std::string::String`
71
- --> tests/ui/useless_conversion_try.rs:42 :27
71
+ --> tests/ui/useless_conversion_try.rs:46 :27
72
72
|
73
73
LL | let _: String = match String::from("_").try_into() {
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments