mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(stage test): use with_capacity (#11759)
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user