chore: remove needless clippy lint (#14550)

This commit is contained in:
Matthias Seitz
2025-02-18 09:18:59 +01:00
committed by GitHub
parent dde5cd8d9d
commit ffd0f11252
11 changed files with 52 additions and 110 deletions

View File

@ -324,13 +324,11 @@ 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,
logs: vec![],
success: true,
..Default::default()
};
// Wrap the receipt in a `Receipts` structure, as expected in the `ExecutionOutcome`.
@ -385,13 +383,11 @@ mod tests {
old_block1.set_hash(B256::new([0x01; 32]));
// 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,
logs: vec![],
success: false,
..Default::default()
};
let old_receipts = vec![vec![old_receipt.clone()]];
@ -416,13 +412,11 @@ mod tests {
new_block1.set_hash(B256::new([0x02; 32]));
// 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,
logs: vec![],
success: true,
..Default::default()
};
let new_receipts = vec![vec![new_receipt.clone()]];