File tree 2 files changed +3
-3
lines changed
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>(
31
31
cx,
32
32
UNNECESSARY_JOIN ,
33
33
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"# ,
35
35
"try using" ,
36
36
"collect::<String>()" . to_owned( ) ,
37
37
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
2
2
--> $DIR/unnecessary_join.rs:11:10
3
3
|
4
4
LL | .collect::<Vec<String>>()
@@ -8,7 +8,7 @@ LL | | .join("");
8
8
|
9
9
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
10
10
11
- error: called `.collect<Vec<String>>().join("")` on an iterator
11
+ error: called `.collect:: <Vec<String>>().join("")` on an iterator
12
12
--> $DIR/unnecessary_join.rs:20:10
13
13
|
14
14
LL | .collect::<Vec<_>>()
You can’t perform that action at this time.
0 commit comments