replace iter with into_iter()
This commit is contained in:
@@ -171,8 +171,8 @@ impl<'tcx> MirPatch<'tcx> {
|
|||||||
delta += 1;
|
delta += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (stmt, target) in stmts_and_targets.iter().rev() {
|
for (stmt, target) in stmts_and_targets.into_iter().rev() {
|
||||||
body[*target].statements.insert(0, stmt.clone());
|
body[target].statements.insert(0, stmt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user