Skip to content

Commit b0acc28

Browse files
committed
fixup stderr
1 parent 423f6ce commit b0acc28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/str_to_string.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: `to_string()` called on a `&str`
22
--> tests/ui/str_to_string.rs:4:17
33
|
44
LL | let hello = "hello world".to_string();
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_owned()`: `"hello world".to_owned()`
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"hello world".to_owned()`
66
|
77
= note: `-D clippy::str-to-string` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::str_to_string)]`
@@ -11,7 +11,7 @@ error: `to_string()` called on a `&str`
1111
--> tests/ui/str_to_string.rs:7:5
1212
|
1313
LL | msg.to_string();
14-
| ^^^^^^^^^^^^^^^ help: consider using `.to_owned()`: `msg.to_owned()`
14+
| ^^^^^^^^^^^^^^^ help: try: `msg.to_owned()`
1515

1616
error: aborting due to 2 previous errors
1717

0 commit comments

Comments
 (0)