1 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
2 --> $DIR/map_clone.rs:12:5
4 12 | x.iter().map(|y| y.clone());
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::map-clone` implied by `-D warnings`
11 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
12 --> $DIR/map_clone.rs:14:5
14 14 | x.iter().map(|&y| y);
15 | ^^^^^^^^^^^^^^^^^^^^
20 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
21 --> $DIR/map_clone.rs:16:5
23 16 | x.iter().map(|y| *y);
24 | ^^^^^^^^^^^^^^^^^^^^
29 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
30 --> $DIR/map_clone.rs:18:5
32 18 | x.iter().map(|y| { y.clone() });
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
39 --> $DIR/map_clone.rs:20:5
41 20 | x.iter().map(|&y| { y });
42 | ^^^^^^^^^^^^^^^^^^^^^^^^
47 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
48 --> $DIR/map_clone.rs:22:5
50 22 | x.iter().map(|y| { *y });
51 | ^^^^^^^^^^^^^^^^^^^^^^^^
56 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
57 --> $DIR/map_clone.rs:24:5
59 24 | x.iter().map(Clone::clone);
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
65 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
66 --> $DIR/map_clone.rs:30:5
68 30 | x.as_ref().map(|y| y.clone());
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
75 --> $DIR/map_clone.rs:32:5
77 32 | x.as_ref().map(|&y| y);
78 | ^^^^^^^^^^^^^^^^^^^^^^
83 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
84 --> $DIR/map_clone.rs:34:5
86 34 | x.as_ref().map(|y| *y);
87 | ^^^^^^^^^^^^^^^^^^^^^^
92 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
93 --> $DIR/map_clone.rs:90:35
95 90 | let _: Option<UnusualDeref> = x.as_ref().map(|y| *y);
96 | ^^^^^^^^^^^^^^^^^^^^^^
101 error: aborting due to 11 previous errors