File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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 |
44LL | / impl Into<StringWrapper> for String {
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
1414error: aborting due to previous error
1515
You can’t perform that action at this time.
0 commit comments