@@ -59,18 +59,6 @@ note: this value is dropped without further use
5959LL | let _s = Path::new("/a/b/").join("c").to_owned();
6060 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6161
62- error: redundant clone
63- --> $DIR/redundant_clone.rs:21:42
64- |
65- LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
66- | ^^^^^^^^^^^^^^ help: remove this
67- |
68- note: this value is dropped without further use
69- --> $DIR/redundant_clone.rs:21:14
70- |
71- LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
72- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73-
7462error: redundant clone
7563 --> $DIR/redundant_clone.rs:23:29
7664 |
@@ -83,18 +71,6 @@ note: this value is dropped without further use
8371LL | let _s = OsString::new().to_owned();
8472 | ^^^^^^^^^^^^^^^
8573
86- error: redundant clone
87- --> $DIR/redundant_clone.rs:25:29
88- |
89- LL | let _s = OsString::new().to_os_string();
90- | ^^^^^^^^^^^^^^^ help: remove this
91- |
92- note: this value is dropped without further use
93- --> $DIR/redundant_clone.rs:25:14
94- |
95- LL | let _s = OsString::new().to_os_string();
96- | ^^^^^^^^^^^^^^^
97-
9874error: redundant clone
9975 --> $DIR/redundant_clone.rs:32:19
10076 |
@@ -108,52 +84,52 @@ LL | let _t = tup.0.clone();
10884 | ^^^^^
10985
11086error: redundant clone
111- --> $DIR/redundant_clone.rs:58 :22
87+ --> $DIR/redundant_clone.rs:59 :22
11288 |
11389LL | (a.clone(), a.clone())
11490 | ^^^^^^^^ help: remove this
11591 |
11692note: this value is dropped without further use
117- --> $DIR/redundant_clone.rs:58 :21
93+ --> $DIR/redundant_clone.rs:59 :21
11894 |
11995LL | (a.clone(), a.clone())
12096 | ^
12197
12298error: redundant clone
123- --> $DIR/redundant_clone.rs:114 :15
99+ --> $DIR/redundant_clone.rs:119 :15
124100 |
125101LL | let _s = s.clone();
126102 | ^^^^^^^^ help: remove this
127103 |
128104note: this value is dropped without further use
129- --> $DIR/redundant_clone.rs:114 :14
105+ --> $DIR/redundant_clone.rs:119 :14
130106 |
131107LL | let _s = s.clone();
132108 | ^
133109
134110error: redundant clone
135- --> $DIR/redundant_clone.rs:115 :15
111+ --> $DIR/redundant_clone.rs:120 :15
136112 |
137113LL | let _t = t.clone();
138114 | ^^^^^^^^ help: remove this
139115 |
140116note: this value is dropped without further use
141- --> $DIR/redundant_clone.rs:115 :14
117+ --> $DIR/redundant_clone.rs:120 :14
142118 |
143119LL | let _t = t.clone();
144120 | ^
145121
146122error: redundant clone
147- --> $DIR/redundant_clone.rs:125 :19
123+ --> $DIR/redundant_clone.rs:130 :19
148124 |
149125LL | let _f = f.clone();
150126 | ^^^^^^^^ help: remove this
151127 |
152128note: this value is dropped without further use
153- --> $DIR/redundant_clone.rs:125 :18
129+ --> $DIR/redundant_clone.rs:130 :18
154130 |
155131LL | let _f = f.clone();
156132 | ^
157133
158- error: aborting due to 13 previous errors
134+ error: aborting due to 11 previous errors
159135
0 commit comments