1 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
4 12 | x.iter().map(|y| y.clone());
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D map-clone` implied by `-D warnings`
11 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
14 14 | x.iter().map(|&y| y);
15 | ^^^^^^^^^^^^^^^^^^^^
17 = note: `-D map-clone` implied by `-D warnings`
21 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
24 16 | x.iter().map(|y| *y);
25 | ^^^^^^^^^^^^^^^^^^^^
27 = note: `-D map-clone` implied by `-D warnings`
31 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
34 18 | x.iter().map(|y| { y.clone() });
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 = note: `-D map-clone` implied by `-D warnings`
41 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
44 20 | x.iter().map(|&y| { y });
45 | ^^^^^^^^^^^^^^^^^^^^^^^^
47 = note: `-D map-clone` implied by `-D warnings`
51 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
54 22 | x.iter().map(|y| { *y });
55 | ^^^^^^^^^^^^^^^^^^^^^^^^
57 = note: `-D map-clone` implied by `-D warnings`
61 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
64 24 | x.iter().map(Clone::clone);
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
67 = note: `-D map-clone` implied by `-D warnings`
71 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
74 30 | x.as_ref().map(|y| y.clone());
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 = note: `-D map-clone` implied by `-D warnings`
81 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
84 32 | x.as_ref().map(|&y| y);
85 | ^^^^^^^^^^^^^^^^^^^^^^
87 = note: `-D map-clone` implied by `-D warnings`
91 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
94 34 | x.as_ref().map(|y| *y);
95 | ^^^^^^^^^^^^^^^^^^^^^^
97 = note: `-D map-clone` implied by `-D warnings`
101 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
102 --> map_clone.rs:90:35
104 90 | let _: Option<UnusualDeref> = x.as_ref().map(|y| *y);
105 | ^^^^^^^^^^^^^^^^^^^^^^
107 = note: `-D map-clone` implied by `-D warnings`
111 error: aborting due to previous error(s)
114 To learn more, run the command again with --verbose.