]> git.lizzy.rs Git - rust.git/blob - tests/ui/str_to_string.rs
Don't lint `if_same_then_else` with `if let` conditions
[rust.git] / tests / ui / str_to_string.rs
1 #![warn(clippy::str_to_string)]
2
3 fn main() {
4     let hello = "hello world".to_string();
5     let msg = &hello[..];
6     msg.to_string();
7 }