Skip to content

Commit

Permalink
Fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
1c3t3a committed Dec 20, 2020
1 parent dd005c1 commit 7e641c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/from_over_into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/from_over_into.stderr
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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

0 comments on commit 7e641c8

Please sign in to comment.