Skip to content

Commit 704e00c

Browse files
committed
Auto merge of #9779 - koka831:fix/unnecessary-join-message, r=Jarcho
fix turbofish in suggest message changelog: [`unnecessary_join`] fix turbofish in suggest message
2 parents 6b4e7dd + 05006e5 commit 704e00c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/methods/unnecessary_join.rs

+1-1
Original file line numberDiff line numberDiff 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,

tests/ui/unnecessary_join.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
|
44
LL | .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
|
1414
LL | .collect::<Vec<_>>()

0 commit comments

Comments
 (0)