mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
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:
commit
704e00cb75
@ -31,7 +31,7 @@ pub(super) fn check<'tcx>(
|
|||||||
cx,
|
cx,
|
||||||
UNNECESSARY_JOIN,
|
UNNECESSARY_JOIN,
|
||||||
span.with_hi(expr.span.hi()),
|
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",
|
"try using",
|
||||||
"collect::<String>()".to_owned(),
|
"collect::<String>()".to_owned(),
|
||||||
applicability,
|
applicability,
|
||||||
|
@ -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
|
--> $DIR/unnecessary_join.rs:11:10
|
||||||
|
|
|
|
||||||
LL | .collect::<Vec<String>>()
|
LL | .collect::<Vec<String>>()
|
||||||
@ -8,7 +8,7 @@ LL | | .join("");
|
|||||||
|
|
|
|
||||||
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
|
= 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
|
--> $DIR/unnecessary_join.rs:20:10
|
||||||
|
|
|
|
||||||
LL | .collect::<Vec<_>>()
|
LL | .collect::<Vec<_>>()
|
||||||
|
Loading…
Reference in New Issue
Block a user