11error: 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
33 |
44LL | let _ = T::try_from(val).unwrap();
55 | ^^^^^^^^^^^^^^^^
@@ -12,63 +12,63 @@ LL | #![deny(clippy::useless_conversion)]
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
1414error: 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
1616 |
1717LL | val.try_into().unwrap()
1818 | ^^^^^^^^^^^^^^
1919 |
2020 = help: consider removing `.try_into()`
2121
2222error: 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
2424 |
2525LL | let _: String = "foo".to_string().try_into().unwrap();
2626 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2727 |
2828 = help: consider removing `.try_into()`
2929
3030error: 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
3232 |
3333LL | let _: String = TryFrom::try_from("foo".to_string()).unwrap();
3434 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3535 |
3636 = help: consider removing `TryFrom::try_from()`
3737
3838error: 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
4040 |
4141LL | let _ = String::try_from("foo".to_string()).unwrap();
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4343 |
4444 = help: consider removing `String::try_from()`
4545
4646error: 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
4848 |
4949LL | let _ = String::try_from(format!("A: {:04}", 123)).unwrap();
5050 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5151 |
5252 = help: consider removing `String::try_from()`
5353
5454error: 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
5656 |
5757LL | let _: String = format!("Hello {}", "world").try_into().unwrap();
5858 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959 |
6060 = help: consider removing `.try_into()`
6161
6262error: 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
6464 |
6565LL | let _: String = String::new().try_into().unwrap();
6666 | ^^^^^^^^^^^^^^^^^^^^^^^^
6767 |
6868 = help: consider removing `.try_into()`
6969
7070error: 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
7272 |
7373LL | let _: String = match String::from("_").try_into() {
7474 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments