Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Aug 27, 2024
1 parent 0d2b82d commit 97e410d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/trace-verifier/commands/run_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn deserialize_block_trace(trace: &str) -> anyhow::Result<BlockTrace> {
pub result: BlockTrace,
}
Ok::<_, serde_json::Error>(
serde_json::from_str::<BlockTraceJsonRpcResult>(&trace)?.result,
serde_json::from_str::<BlockTraceJsonRpcResult>(trace)?.result,
)
})?,
)
Expand Down
1 change: 1 addition & 0 deletions src/hardfork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::{dev_info, dev_warn};

/// Hardfork heights for Scroll networks, grouped by chain id.
static HARDFORK_HEIGHTS: LazyLock<HashMap<u64, HashMap<SpecId, u64>>> = LazyLock::new(|| {
#[allow(clippy::let_and_return)]
let heights = hardfork_heights()
.into_iter()
.sorted_by_key(|(_, chain_id, _)| *chain_id)
Expand Down

0 comments on commit 97e410d

Please sign in to comment.