Skip to content

Commit

Permalink
Moves val into .extend() instead of &mut and .into_iter() (#34285)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Dec 1, 2023
1 parent c9cb727 commit 8fbe033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6037,7 +6037,7 @@ impl Bank {
self.skipped_rewrites
.lock()
.unwrap()
.extend(&mut results.skipped_rewrites.into_iter());
.extend(results.skipped_rewrites);

// We cannot assert here that we collected from all expected keys.
// Some accounts may have been topped off or may have had all funds removed and gone to 0 lamports.
Expand Down

0 comments on commit 8fbe033

Please sign in to comment.