Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Aug 9, 2024
1 parent 17d7be5 commit 228ecc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ mod tests {
}
}

fn persist_blocks(&mut self, blocks: Vec<SealedBlockWithSenders>) {
fn persist_blocks(&self, blocks: Vec<SealedBlockWithSenders>) {
let mut block_data: Vec<(B256, Block)> = Vec::with_capacity(blocks.len());
let mut headers_data: Vec<(B256, Header)> = Vec::with_capacity(blocks.len());

Expand All @@ -2284,7 +2284,7 @@ mod tests {
fn setup_range_insertion_for_chain(&mut self, chain: Vec<SealedBlockWithSenders>) {
// setting up execution outcomes for the chain, the blocks will be
// executed starting from the oldest, so we need to reverse.
let mut chain_rev = chain.clone();
let mut chain_rev = chain;
chain_rev.reverse();

let mut execution_outcomes = Vec::with_capacity(chain_rev.len());
Expand Down

0 comments on commit 228ecc2

Please sign in to comment.