Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed Dec 11, 2024
1 parent bc51488 commit 32f912e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/eth/storage/temporary/inmemory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,9 @@ impl TemporaryStorage for InMemoryTemporaryStorage {
drop(pending_block);

#[cfg(feature = "dev")]
let mut finished_block = latest
.as_ref()
.expect("latest should be Some after finishing the pending block")
.block
.clone();
let mut finished_block = latest.as_ref().expect("latest should be Some after finishing the pending block").block.clone();
#[cfg(not(feature = "dev"))]
let finished_block = latest
.as_ref()
.expect("latest should be Some after finishing the pending block")
.block
.clone();
let finished_block = latest.as_ref().expect("latest should be Some after finishing the pending block").block.clone();

#[cfg(feature = "dev")]
{
Expand Down

0 comments on commit 32f912e

Please sign in to comment.