mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: clippy lints (#12269)
This commit is contained in:
@ -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,
|
||||
@ -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,
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user