rust-clippy/tests/ui/unnecessary_join.stderr
2023-08-11 14:02:28 +00:00

20 lines
624 B
Text

error: called `.collect::<Vec<String>>().join("")` on an iterator
--> $DIR/unnecessary_join.rs:10: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:19:10
|
LL | .collect::<Vec<_>>()
| __________^
LL | | .join("");
| |_________________^ help: try using: `collect::<String>()`
error: aborting due to 2 previous errors