1 error: unnecessary use of `copied`
2 --> $DIR/unnecessary_iter_cloned.rs:31:22
4 LL | for (t, path) in files.iter().copied() {
5 | ^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::unnecessary-to-owned` implied by `-D warnings`
10 LL | for (t, path) in files {
14 LL - let other = match get_file_path(&t) {
15 LL + let other = match get_file_path(t) {
18 error: unnecessary use of `copied`
19 --> $DIR/unnecessary_iter_cloned.rs:46:22
21 LL | for (t, path) in files.iter().copied() {
22 | ^^^^^^^^^^^^^^^^^^^^^
26 LL | for (t, path) in files.iter() {
30 LL - let other = match get_file_path(&t) {
31 LL + let other = match get_file_path(t) {
34 error: aborting due to 2 previous errors