about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unnecessary_join.stderr
blob: a7677fe2f9eb6ca82492b30b286cda8de2e87222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: called `.collect::<Vec<String>>().join("")` on an iterator
  --> tests/ui/unnecessary_join.rs:10:10
   |
LL |           .collect::<Vec<String>>()
   |  __________^
LL | |
LL | |         .join("");
   | |_________________^ help: consider using: `collect::<String>()`
   |
   = note: `-D clippy::unnecessary-join` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_join)]`

error: called `.collect::<Vec<String>>().join("")` on an iterator
  --> tests/ui/unnecessary_join.rs:20:10
   |
LL |           .collect::<Vec<_>>()
   |  __________^
LL | |
LL | |         .join("");
   | |_________________^ help: consider using: `collect::<String>()`

error: aborting due to 2 previous errors