mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 17:13:48 +00:00
21 lines
620 B
Plaintext
21 lines
620 B
Plaintext
|
error: called `.collect<Vec<String>>().join("")` on an iterator
|
||
|
--> $DIR/unnecessary_join.rs:11:10
|
||
|
|
|
||
|
LL | .collect::<Vec<String>>()
|
||
|
| __________^
|
||
|
LL | | .join("");
|
||
|
| |_________________^ help: try using: `collect::<String>()`
|
||
|
|
|
||
|
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
|
||
|
|
||
|
error: called `.collect<Vec<String>>().join("")` on an iterator
|
||
|
--> $DIR/unnecessary_join.rs:20:10
|
||
|
|
|
||
|
LL | .collect::<Vec<_>>()
|
||
|
| __________^
|
||
|
LL | | .join("");
|
||
|
| |_________________^ help: try using: `collect::<String>()`
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|