blob: 99eea06f18ebfb6db79ba7fd9c38d1d05d4b81fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
error: `to_string()` called on a `String`
--> tests/ui/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: `to_string()` called on a `String`
--> tests/ui/string_to_string.rs:14:9
|
LL | x.to_string()
| ^^^^^^^^^^^^^
|
= help: consider using `.clone()`
error: `to_string()` called on a `String`
--> tests/ui/string_to_string.rs:19:33
|
LL | let _ = x.unwrap_or_else(|| v.to_string());
| ^^^^^^^^^^^^^
|
= help: consider using `.clone()`
error: aborting due to 3 previous errors
|