rust/tests/ui/unnecessary_join.stderr

21 lines
624 B
Plaintext
Raw Normal View History

2022-11-03 09:53:29 -05:00
error: called `.collect::<Vec<String>>().join("")` on an iterator
2023-07-27 06:40:22 -05:00
--> $DIR/unnecessary_join.rs:10:10
2022-03-24 07:18:18 -05:00
|
LL | .collect::<Vec<String>>()
| __________^
LL | | .join("");
| |_________________^ help: try using: `collect::<String>()`
|
= note: `-D clippy::unnecessary-join` implied by `-D warnings`
2022-11-03 09:53:29 -05:00
error: called `.collect::<Vec<String>>().join("")` on an iterator
2023-07-27 06:40:22 -05:00
--> $DIR/unnecessary_join.rs:19:10
2022-03-24 07:18:18 -05:00
|
LL | .collect::<Vec<_>>()
| __________^
LL | | .join("");
| |_________________^ help: try using: `collect::<String>()`
error: aborting due to 2 previous errors