diff --git a/src/eth/storage/temporary/inmemory.rs b/src/eth/storage/temporary/inmemory.rs index f135ea8f7..66ee63df3 100644 --- a/src/eth/storage/temporary/inmemory.rs +++ b/src/eth/storage/temporary/inmemory.rs @@ -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")] {