about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unnecessary_iter_cloned.stderr
blob: 632c8f37110685c1c00ebe55357a108590b2b5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: unnecessary use of `copied`
  --> tests/ui/unnecessary_iter_cloned.rs:31:22
   |
LL |     for (t, path) in files.iter().copied() {
   |                      ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::unnecessary-to-owned` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_to_owned)]`
help: remove any references to the binding
   |
LL ~     for (t, path) in files {
LL |
LL ~         let other = match get_file_path(t) {
   |

error: unnecessary use of `copied`
  --> tests/ui/unnecessary_iter_cloned.rs:47:22
   |
LL |     for (t, path) in files.iter().copied() {
   |                      ^^^^^^^^^^^^^^^^^^^^^
   |
help: remove any references to the binding
   |
LL ~     for (t, path) in files.iter() {
LL |
LL ~         let other = match get_file_path(t) {
   |

error: unnecessary use of `cloned`
  --> tests/ui/unnecessary_iter_cloned.rs:179:18
   |
LL |         for c in v.iter().cloned() {
   |                  ^^^^^^^^^^^^^^^^^ help: remove any references to the binding: `v.iter()`

error: unnecessary use of `cloned`
  --> tests/ui/unnecessary_iter_cloned.rs:188:18
   |
LL |         for c in v.iter().cloned() {
   |                  ^^^^^^^^^^^^^^^^^
   |
help: remove any references to the binding
   |
LL ~         for c in v.iter() {
LL |
LL |
LL ~             let ref_c = c;
   |

error: unnecessary use of `cloned`
  --> tests/ui/unnecessary_iter_cloned.rs:198:23
   |
LL |         for (i, c) in v.iter().cloned() {
   |                       ^^^^^^^^^^^^^^^^^
   |
help: remove any references to the binding
   |
LL ~         for (i, c) in v.iter() {
LL |
LL |
LL ~             let ref_c = c;
LL ~             let ref_i = i;
   |

error: aborting due to 5 previous errors