2 --> $DIR/redundant_clone.rs:9:42
4 LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
5 | ^^^^^^^^^^^^ help: remove this
7 = note: `-D clippy::redundant-clone` implied by `-D warnings`
8 note: this value is dropped without further use
9 --> $DIR/redundant_clone.rs:9:14
11 LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error: redundant clone
15 --> $DIR/redundant_clone.rs:12:15
17 LL | let _s = s.clone();
18 | ^^^^^^^^ help: remove this
20 note: this value is dropped without further use
21 --> $DIR/redundant_clone.rs:12:14
23 LL | let _s = s.clone();
26 error: redundant clone
27 --> $DIR/redundant_clone.rs:15:15
29 LL | let _s = s.to_string();
30 | ^^^^^^^^^^^^ help: remove this
32 note: this value is dropped without further use
33 --> $DIR/redundant_clone.rs:15:14
35 LL | let _s = s.to_string();
38 error: redundant clone
39 --> $DIR/redundant_clone.rs:18:15
41 LL | let _s = s.to_owned();
42 | ^^^^^^^^^^^ help: remove this
44 note: this value is dropped without further use
45 --> $DIR/redundant_clone.rs:18:14
47 LL | let _s = s.to_owned();
50 error: redundant clone
51 --> $DIR/redundant_clone.rs:20:42
53 LL | let _s = Path::new("/a/b/").join("c").to_owned();
54 | ^^^^^^^^^^^ help: remove this
56 note: this value is dropped without further use
57 --> $DIR/redundant_clone.rs:20:14
59 LL | let _s = Path::new("/a/b/").join("c").to_owned();
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 error: redundant clone
63 --> $DIR/redundant_clone.rs:22:42
65 LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
66 | ^^^^^^^^^^^^^^ help: remove this
68 note: this value is dropped without further use
69 --> $DIR/redundant_clone.rs:22:14
71 LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 error: redundant clone
75 --> $DIR/redundant_clone.rs:24:29
77 LL | let _s = OsString::new().to_owned();
78 | ^^^^^^^^^^^ help: remove this
80 note: this value is dropped without further use
81 --> $DIR/redundant_clone.rs:24:14
83 LL | let _s = OsString::new().to_owned();
86 error: redundant clone
87 --> $DIR/redundant_clone.rs:26:29
89 LL | let _s = OsString::new().to_os_string();
90 | ^^^^^^^^^^^^^^^ help: remove this
92 note: this value is dropped without further use
93 --> $DIR/redundant_clone.rs:26:14
95 LL | let _s = OsString::new().to_os_string();
98 error: redundant clone
99 --> $DIR/redundant_clone.rs:33:19
101 LL | let _t = tup.0.clone();
102 | ^^^^^^^^ help: remove this
104 note: this value is dropped without further use
105 --> $DIR/redundant_clone.rs:33:14
107 LL | let _t = tup.0.clone();
110 error: redundant clone
111 --> $DIR/redundant_clone.rs:65:25
113 LL | if b { (a.clone(), a.clone()) } else { (Alpha, a) }
114 | ^^^^^^^^ help: remove this
116 note: this value is dropped without further use
117 --> $DIR/redundant_clone.rs:65:24
119 LL | if b { (a.clone(), a.clone()) } else { (Alpha, a) }
122 error: redundant clone
123 --> $DIR/redundant_clone.rs:122:15
125 LL | let _s = s.clone();
126 | ^^^^^^^^ help: remove this
128 note: this value is dropped without further use
129 --> $DIR/redundant_clone.rs:122:14
131 LL | let _s = s.clone();
134 error: redundant clone
135 --> $DIR/redundant_clone.rs:123:15
137 LL | let _t = t.clone();
138 | ^^^^^^^^ help: remove this
140 note: this value is dropped without further use
141 --> $DIR/redundant_clone.rs:123:14
143 LL | let _t = t.clone();
146 error: redundant clone
147 --> $DIR/redundant_clone.rs:133:19
149 LL | let _f = f.clone();
150 | ^^^^^^^^ help: remove this
152 note: this value is dropped without further use
153 --> $DIR/redundant_clone.rs:133:18
155 LL | let _f = f.clone();
158 error: redundant clone
159 --> $DIR/redundant_clone.rs:145:14
161 LL | let y = x.clone().join("matthias");
162 | ^^^^^^^^ help: remove this
164 note: cloned value is neither consumed nor mutated
165 --> $DIR/redundant_clone.rs:145:13
167 LL | let y = x.clone().join("matthias");
170 error: redundant clone
171 --> $DIR/redundant_clone.rs:199:11
173 LL | foo(&x.clone(), move || {
174 | ^^^^^^^^ help: remove this
176 note: this value is dropped without further use
177 --> $DIR/redundant_clone.rs:199:10
179 LL | foo(&x.clone(), move || {
182 error: aborting due to 15 previous errors