mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-06 09:36:56 +00:00
Fixed error messages
This commit is contained in:
@@ -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",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user