Skip to content

Commit

Permalink
fix: clippy lints (#12269)
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr authored Nov 2, 2024
1 parent d8bbd36 commit d7ead13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
matrix:
include:
- type: ethereum
args: --bin reth --workspace --locked
args: --bin reth --workspace --lib --examples --tests --benches --locked
features: "ethereum asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
- type: optimism
args: --bin op-reth --workspace --locked
args: --bin op-reth --workspace --lib --examples --tests --benches --locked
features: "optimism asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
- type: book
args: --manifest-path book/sources/Cargo.toml --workspace --bins
Expand Down
3 changes: 3 additions & 0 deletions crates/chain-state/src/notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ mod tests {
block2.set_hash(block2_hash);

// Create a receipt for the transaction in block1.
#[allow(clippy::needless_update)]
let receipt1 = Receipt {
tx_type: TxType::Legacy,
cumulative_gas_used: 12345,
Expand Down Expand Up @@ -346,6 +347,7 @@ mod tests {
old_block1.block.body.transactions.push(TransactionSigned::default());

// Create a receipt for a transaction in the reverted block.
#[allow(clippy::needless_update)]
let old_receipt = Receipt {
tx_type: TxType::Legacy,
cumulative_gas_used: 54321,
Expand All @@ -368,6 +370,7 @@ mod tests {
new_block1.block.body.transactions.push(TransactionSigned::default());

// Create a receipt for a transaction in the new committed block.
#[allow(clippy::needless_update)]
let new_receipt = Receipt {
tx_type: TxType::Legacy,
cumulative_gas_used: 12345,
Expand Down

0 comments on commit d7ead13

Please sign in to comment.