Auto merge of #9779 - koka831:fix/unnecessary-join-message, r=Jarcho

fix turbofish in suggest message

changelog: [`unnecessary_join`] fix turbofish in suggest message
This commit is contained in:
bors 2022-11-03 16:30:21 +00:00
commit 704e00cb75
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ pub(super) fn check<'tcx>(
cx,
UNNECESSARY_JOIN,
span.with_hi(expr.span.hi()),
r#"called `.collect<Vec<String>>().join("")` on an iterator"#,
r#"called `.collect::<Vec<String>>().join("")` on an iterator"#,
"try using",
"collect::<String>()".to_owned(),
applicability,

View File

@ -1,4 +1,4 @@
error: called `.collect<Vec<String>>().join("")` on an iterator
error: called `.collect::<Vec<String>>().join("")` on an iterator
--> $DIR/unnecessary_join.rs:11:10
|
LL | .collect::<Vec<String>>()
@ -8,7 +8,7 @@ LL | | .join("");
|
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
error: called `.collect<Vec<String>>().join("")` on an iterator
error: called `.collect::<Vec<String>>().join("")` on an iterator
--> $DIR/unnecessary_join.rs:20:10
|
LL | .collect::<Vec<_>>()