mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
12 lines
314 B
Plaintext
12 lines
314 B
Plaintext
error: `to_string()` called on a `String`
|
|
--> $DIR/string_to_string.rs:6:17
|
|
|
|
|
LL | let mut v = message.to_string();
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using `.clone()`
|
|
= note: `-D clippy::string-to-string` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|