summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/str_to_string.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/str_to_string.stderr')
-rw-r--r--src/tools/clippy/tests/ui/str_to_string.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/str_to_string.stderr b/src/tools/clippy/tests/ui/str_to_string.stderr
index 1d47da571..203805eca 100644
--- a/src/tools/clippy/tests/ui/str_to_string.stderr
+++ b/src/tools/clippy/tests/ui/str_to_string.stderr
@@ -6,9 +6,10 @@ LL | let hello = "hello world".to_string();
|
= help: consider using `.to_owned()`
= note: `-D clippy::str-to-string` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::str_to_string)]`
error: `to_string()` called on a `&str`
- --> $DIR/str_to_string.rs:6:5
+ --> $DIR/str_to_string.rs:7:5
|
LL | msg.to_string();
| ^^^^^^^^^^^^^^^