mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
21 lines
712 B
Text
21 lines
712 B
Text
error: called `.collect::<Vec<String>>().join("")` on an iterator
|
|
--> $DIR/unnecessary_join.rs:10:10
|
|
|
|
|
LL | .collect::<Vec<String>>()
|
|
| __________^
|
|
LL | | .join("");
|
|
| |_________________^ help: consider using: `collect::<String>()`
|
|
|
|
|
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_join)]`
|
|
|
|
error: called `.collect::<Vec<String>>().join("")` on an iterator
|
|
--> $DIR/unnecessary_join.rs:19:10
|
|
|
|
|
LL | .collect::<Vec<_>>()
|
|
| __________^
|
|
LL | | .join("");
|
|
| |_________________^ help: consider using: `collect::<String>()`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|