fork/rust

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

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

master
1012 B36 linesraw
1error: unnecessary use of `copied`
2  --> $DIR/unnecessary_iter_cloned.rs:29:22
3   |
4LL |     for (t, path) in files.iter().copied() {
5   |                      ^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::unnecessary-to-owned` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_to_owned)]`
9help: use
10   |
11LL |     for (t, path) in files {
12   |                      ~~~~~
13help: remove this `&`
14   |
15LL -         let other = match get_file_path(&t) {
16LL +         let other = match get_file_path(t) {
17   |
18
19error: unnecessary use of `copied`
20  --> $DIR/unnecessary_iter_cloned.rs:44:22
21   |
22LL |     for (t, path) in files.iter().copied() {
23   |                      ^^^^^^^^^^^^^^^^^^^^^
24   |
25help: use
26   |
27LL |     for (t, path) in files.iter() {
28   |                      ~~~~~~~~~~~~
29help: remove this `&`
30   |
31LL -         let other = match get_file_path(&t) {
32LL +         let other = match get_file_path(t) {
33   |
34
35error: aborting due to 2 previous errors
36