We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 423f6ce commit b0acc28Copy full SHA for b0acc28
tests/ui/str_to_string.stderr
@@ -2,7 +2,7 @@ error: `to_string()` called on a `&str`
2
--> tests/ui/str_to_string.rs:4:17
3
|
4
LL | let hello = "hello world".to_string();
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_owned()`: `"hello world".to_owned()`
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"hello world".to_owned()`
6
7
= note: `-D clippy::str-to-string` implied by `-D warnings`
8
= help: to override `-D warnings` add `#[allow(clippy::str_to_string)]`
@@ -11,7 +11,7 @@ error: `to_string()` called on a `&str`
11
--> tests/ui/str_to_string.rs:7:5
12
13
LL | msg.to_string();
14
- | ^^^^^^^^^^^^^^^ help: consider using `.to_owned()`: `msg.to_owned()`
+ | ^^^^^^^^^^^^^^^ help: try: `msg.to_owned()`
15
16
error: aborting due to 2 previous errors
17
0 commit comments