File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub(super) fn check<'tcx>(
3131 cx,
3232 UNNECESSARY_JOIN ,
3333 span. with_hi( expr. span. hi( ) ) ,
34- r#"called `.collect<Vec<String>>().join("")` on an iterator"# ,
34+ r#"called `.collect:: <Vec<String>>().join("")` on an iterator"# ,
3535 "try using" ,
3636 "collect::<String>()" . to_owned( ) ,
3737 applicability,
Original file line number Diff line number Diff line change 1- error: called `.collect<Vec<String>>().join("")` on an iterator
1+ error: called `.collect:: <Vec<String>>().join("")` on an iterator
22 --> $DIR/unnecessary_join.rs:11:10
33 |
44LL | .collect::<Vec<String>>()
@@ -8,7 +8,7 @@ LL | | .join("");
88 |
99 = note: `-D clippy::unnecessary-join` implied by `-D warnings`
1010
11- error: called `.collect<Vec<String>>().join("")` on an iterator
11+ error: called `.collect:: <Vec<String>>().join("")` on an iterator
1212 --> $DIR/unnecessary_join.rs:20:10
1313 |
1414LL | .collect::<Vec<_>>()
You can’t perform that action at this time.
0 commit comments