fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `to_string()` called on a `&str` 2 --> $DIR/str_to_string.rs:4:17 3 | 4LL | let hello = "hello world".to_string(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = help: consider using `.to_owned()` 8 = note: `-D clippy::str-to-string` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::str_to_string)]` 10 11error: `to_string()` called on a `&str` 12 --> $DIR/str_to_string.rs:7:5 13 | 14LL | msg.to_string(); 15 | ^^^^^^^^^^^^^^^ 16 | 17 = help: consider using `.to_owned()` 18 19error: aborting due to 2 previous errors 20