2020-12-06 14:01:03 +00:00
|
|
|
error: `to_string()` called on a `String`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/string_to_string.rs:6:17
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::string_to_string)]`
|
2020-12-06 14:01:03 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-12-06 14:01:03 +00:00
|
|
|
|