2022-11-21 19:34:47 +00:00
|
|
|
error: called `.collect::<Vec<String>>().join("")` on an iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unnecessary_join.rs:10:10
|
2022-03-24 13:50:04 +00:00
|
|
|
|
|
|
|
|
LL | .collect::<Vec<String>>()
|
|
|
|
| __________^
|
|
|
|
LL | | .join("");
|
|
|
|
| |_________________^ help: try using: `collect::<String>()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_join)]`
|
2022-03-24 13:50:04 +00:00
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: called `.collect::<Vec<String>>().join("")` on an iterator
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unnecessary_join.rs:19:10
|
2022-03-24 13:50:04 +00:00
|
|
|
|
|
|
|
|
LL | .collect::<Vec<_>>()
|
|
|
|
| __________^
|
|
|
|
LL | | .join("");
|
|
|
|
| |_________________^ help: try using: `collect::<String>()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|