mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
394 B
Text
12 lines
394 B
Text
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`
|
|
= help: to override `-D warnings` add `#[allow(clippy::string_to_string)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|