fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
702 B21 linesraw
1error: called `.collect::<Vec<String>>().join("")` on an iterator
2  --> $DIR/unnecessary_join.rs:10:10
3   |
4LL |           .collect::<Vec<String>>()
5   |  __________^
6LL | |         .join("");
7   | |_________________^ help: try using: `collect::<String>()`
8   |
9   = note: `-D clippy::unnecessary-join` implied by `-D warnings`
10   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_join)]`
11
12error: called `.collect::<Vec<String>>().join("")` on an iterator
13  --> $DIR/unnecessary_join.rs:19:10
14   |
15LL |           .collect::<Vec<_>>()
16   |  __________^
17LL | |         .join("");
18   | |_________________^ help: try using: `collect::<String>()`
19
20error: aborting due to 2 previous errors
21