mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
fix turbofish in suggest message
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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<_>>()
|
||||
|
||||
Reference in New Issue
Block a user