Skip to content

Commit

Permalink
chore(stage test): use with_capacity (#11759)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Oct 15, 2024
1 parent 77a382f commit 7b1b1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/stages/stages/src/stages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ mod tests {
);
db.insert_blocks(blocks.iter(), StorageKind::Static)?;

let mut receipts = Vec::new();
let mut receipts = Vec::with_capacity(blocks.len());
let mut tx_num = 0u64;
for block in &blocks {
let mut block_receipts = Vec::with_capacity(block.body.transactions.len());
Expand Down

0 comments on commit 7b1b1fc

Please sign in to comment.