Skip to content

Commit 7e641c8

Browse files
committed
Fixed error messages
1 parent dd005c1 commit 7e641c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/from_over_into.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ impl LateLintPass<'_> for FromOverInto {
7171
cx,
7272
FROM_OVER_INTO,
7373
item.span,
74-
"An implementation of From is preferred since it gives you Into<..> for free where the reverse isn't true.",
74+
"An implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true.",
7575
None,
76-
"consider to implement From instead",
76+
"consider to implement `From` instead",
7777
);
7878
}
7979
}

tests/ui/from_over_into.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: An implementation of From is preferred since it gives you Into<..> for free where the reverse isn't true.
1+
error: An implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true.
22
--> $DIR/from_over_into.rs:6:1
33
|
44
LL | / impl Into<StringWrapper> for String {
@@ -9,7 +9,7 @@ LL | | }
99
| |_^
1010
|
1111
= note: `-D clippy::from-over-into` implied by `-D warnings`
12-
= help: consider to implement From instead
12+
= help: consider to implement `From` instead
1313

1414
error: aborting due to previous error
1515

0 commit comments

Comments
 (0)