Skip to content

Commit

Permalink
fix: Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome committed Sep 17, 2024
1 parent 068d57f commit a07ccd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/services/producer/src/block_producer/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,14 +607,13 @@ mod dry_run {

impl MockExecutorWithCapture<Transaction> {
fn captured_block_timestamp(&self) -> Tai64 {
self.captured
*self.captured
.lock()
.unwrap()
.as_ref()
.expect("should have captured a block")
.header_to_produce
.time()
.clone()
}

fn has_no_captured_block_timestamp(&self) -> bool {
Expand Down Expand Up @@ -963,7 +962,7 @@ impl TestContextBuilder {
let block_gas_limit = self.block_gas_limit.unwrap_or_default();

let mock_relayer = MockRelayer {
latest_block_height: self.latest_block_height.clone(),
latest_block_height: self.latest_block_height,
latest_da_blocks_with_costs: self.blocks_with_gas_costs.clone(),
..Default::default()
};
Expand All @@ -985,7 +984,7 @@ impl TestContextBuilder {
let block_gas_limit = self.block_gas_limit.unwrap_or_default();

let mock_relayer = MockRelayer {
latest_block_height: self.latest_block_height.clone(),
latest_block_height: self.latest_block_height,
latest_da_blocks_with_costs: self.blocks_with_gas_costs.clone(),
..Default::default()
};
Expand Down

0 comments on commit a07ccd7

Please sign in to comment.