rust-clippy/tests/ui/string_to_string.stderr

13 lines
394 B
Text
Raw Normal View History

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()`
2022-09-22 16:04:22 +00:00
= 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