Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 31, 2025
1 parent 426d37d commit b61e01a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified elf/range-elf
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/utils/bin/cost_estimator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async fn execute_blocks_and_write_stats_csv(
.await
.unwrap()
.number;
let execution_stats = ExecutionStats::new(l1_block_number, &block_data, &report, 0, 0);
let execution_stats = ExecutionStats::new(l1_block_number, block_data, &report, 0, 0);

let mut file = OpenOptions::new()
.read(true)
Expand Down
4 changes: 2 additions & 2 deletions utils/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ where

// Create a new derivation driver with the given boot information and oracle.
let cursor = new_pipeline_cursor(
&rollup_config.as_ref(),
rollup_config.as_ref(),
safe_head,
&mut l1_provider,
&mut l2_provider,
Expand Down Expand Up @@ -129,7 +129,7 @@ where
println!("cycle-tracker-report-start: block-execution-and-derivation");
let (safe_head, output_root) = advance_to_target(
&mut driver,
&rollup_config.as_ref(),
rollup_config.as_ref(),
Some(boot.claimed_l2_block_number),
)
.await?;
Expand Down
4 changes: 2 additions & 2 deletions utils/client/src/oracle/in_memory_oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ impl InMemoryOracle {
HashMap::with_hasher(BytesHasherBuilder);

for (key, value) in self.cache.iter() {
let preimage_key = PreimageKey::try_from(key.clone()).unwrap();
let preimage_key = PreimageKey::try_from(*key).unwrap();
// TODO: Switch to using the Blob provider.
if preimage_key.key_type() == PreimageKeyType::Blob {
// We should verify the keys using the Blob provider.
let blob_data_key: [u8; 32] =
PreimageKey::new(key.clone(), PreimageKeyType::Keccak256).into();
PreimageKey::new(*key, PreimageKeyType::Keccak256).into();
if let Some(blob_data) = self.cache.get(&blob_data_key) {
let commitment: FixedBytes<48> = blob_data[..48].try_into().unwrap();
let element_idx_bytes: [u8; 8] = blob_data[72..].try_into().unwrap();
Expand Down

0 comments on commit b61e01a

Please sign in to comment.