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 {
71
71
cx,
72
72
FROM_OVER_INTO ,
73
73
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." ,
75
75
None ,
76
- "consider to implement From instead" ,
76
+ "consider to implement ` From` instead" ,
77
77
) ;
78
78
}
79
79
}
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.
2
2
--> $DIR/from_over_into.rs:6:1
3
3
|
4
4
LL | / impl Into<StringWrapper> for String {
9
9
| |_^
10
10
|
11
11
= note: `-D clippy::from-over-into` implied by `-D warnings`
12
- = help: consider to implement From instead
12
+ = help: consider to implement ` From` instead
13
13
14
14
error: aborting due to previous error
15
15
You can’t perform that action at this time.
0 commit comments