Fixed error messages
This commit is contained in:
parent
dd005c17e7
commit
7e641c8be7
2 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue