]> git.lizzy.rs Git - rust.git/commitdiff
Fixed error messages
authorBastian Kersting <bastian@cmbt.de>
Sun, 20 Dec 2020 19:10:00 +0000 (20:10 +0100)
committerBastian Kersting <bastian@cmbt.de>
Sun, 20 Dec 2020 21:00:34 +0000 (22:00 +0100)
clippy_lints/src/from_over_into.rs
tests/ui/from_over_into.stderr

index c7988d6f01fa50c007ee81d48b06c6e393fcb9cd..083101ab1c6496af3a391ccbbefca57e418ac6b4 100644 (file)
@@ -71,9 +71,9 @@ fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'_>) {
                     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",
                 );
             }
         }
index c9c8e7c4b538b8c3b1c1ee517657b52a6cc12a4b..0825d47add248c6b0e78cf61c6931a3ea32c908a 100644 (file)
@@ -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