about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/from_over_into.rs4
-rw-r--r--tests/ui/from_over_into.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/from_over_into.rs b/clippy_lints/src/from_over_into.rs
index c7988d6f01f..083101ab1c6 100644
--- a/clippy_lints/src/from_over_into.rs
+++ b/clippy_lints/src/from_over_into.rs
@@ -71,9 +71,9 @@ impl LateLintPass<'_> for FromOverInto {
                     cx,
                     FROM_OVER_INTO,
                     item.span,
-                    "An implementation of From is preferred since it gives you Into<..> for free where the reverse isn't true.",
+                    "An implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true.",
                     None,
-                    "consider to implement From instead",
+                    "consider to implement `From` instead",
                 );
             }
         }
diff --git a/tests/ui/from_over_into.stderr b/tests/ui/from_over_into.stderr
index c9c8e7c4b53..0825d47add2 100644
--- a/tests/ui/from_over_into.stderr
+++ b/tests/ui/from_over_into.stderr
@@ -1,4 +1,4 @@
-error: An implementation of From is preferred since it gives you Into<..> for free where the reverse isn't true.
+error: An implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true.
   --> $DIR/from_over_into.rs:6:1
    |
 LL | / impl Into<StringWrapper> for String {
@@ -9,7 +9,7 @@ LL | | }
    | |_^
    |
    = note: `-D clippy::from-over-into` implied by `-D warnings`
-   = help: consider to implement From instead
+   = help: consider to implement `From` instead
 
 error: aborting due to previous error