summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unnecessary_join.stderr
blob: e919a6d1d8aa395c40ab36cea5c3d8d4635c506f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: called `.collect::<Vec<String>>().join("")` on an iterator
  --> $DIR/unnecessary_join.rs:11: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:20:10
   |
LL |           .collect::<Vec<_>>()
   |  __________^
LL | |         .join("");
   | |_________________^ help: try using: `collect::<String>()`

error: aborting due to 2 previous errors