Skip to content

Commit 5364c86

Browse files
committed
replace iter with into_iter()
1 parent 70e67d6 commit 5364c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/mir/patch.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ impl<'tcx> MirPatch<'tcx> {
171171
delta += 1;
172172
}
173173

174-
for (stmt, target) in stmts_and_targets.iter().rev() {
175-
body[*target].statements.insert(0, stmt.clone());
174+
for (stmt, target) in stmts_and_targets.into_iter().rev() {
175+
body[target].statements.insert(0, stmt);
176176
}
177177
}
178178

0 commit comments

Comments
 (0)