replace iter with into_iter()
This commit is contained in:
parent
70e67d6f55
commit
5364c86e8e
1 changed files with 2 additions and 2 deletions
|
@ -171,8 +171,8 @@ impl<'tcx> MirPatch<'tcx> {
|
|||
delta += 1;
|
||||
}
|
||||
|
||||
for (stmt, target) in stmts_and_targets.iter().rev() {
|
||||
body[*target].statements.insert(0, stmt.clone());
|
||||
for (stmt, target) in stmts_and_targets.into_iter().rev() {
|
||||
body[target].statements.insert(0, stmt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue