2 This lint checks for `.to_string()` method calls on values of type `&str`.
5 The `to_string` method is also used on other types to convert them to a string.
6 When called on a `&str` it turns the `&str` into the owned variant `String`, which can be better
7 expressed with `.to_owned()`.
11 // example code where clippy issues a warning
12 let _ = "str".to_string();
16 // example code which does not raise clippy warning
17 let _ = "str".to_owned();