2022-11-21 13:34:47 -06:00
|
|
|
error: called `.collect::<Vec<String>>().join("")` on an iterator
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unnecessary_join.rs:10:10
|
2022-03-24 08:50:04 -05:00
|
|
|
|
|
|
|
|
LL | .collect::<Vec<String>>()
|
|
|
|
| __________^
|
|
|
|
LL | | .join("");
|
2024-01-18 11:17:53 -06:00
|
|
|
| |_________________^ help: consider using: `collect::<String>()`
|
2022-03-24 08:50:04 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_join)]`
|
2022-03-24 08:50:04 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: called `.collect::<Vec<String>>().join("")` on an iterator
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unnecessary_join.rs:19:10
|
2022-03-24 08:50:04 -05:00
|
|
|
|
|
|
|
|
LL | .collect::<Vec<_>>()
|
|
|
|
| __________^
|
|
|
|
LL | | .join("");
|
2024-01-18 11:17:53 -06:00
|
|
|
| |_________________^ help: consider using: `collect::<String>()`
|
2022-03-24 08:50:04 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|