Skip to content

Commit 8a85f86

Browse files
committed
lint: clippy
1 parent 32c36a8 commit 8a85f86

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/evm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ impl<'a, Ext, Db: Database + DatabaseCommit, TrevmState: HasBlock> Trevm<'a, Ext
880880

881881
// --- Needs Block with State<Db>
882882

883-
impl<'a, Ext, Db: Database> EvmNeedsBlock<'a, Ext, State<Db>> {
883+
impl< Ext, Db: Database> EvmNeedsBlock<'_, Ext, State<Db>> {
884884
/// Finish execution and return the outputs.
885885
///
886886
/// ## Panics

src/system/eip2935.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn eip2935_slot(block_num: u64) -> U256 {
1616
U256::from(block_num % BLOCKHASH_SERVE_WINDOW as u64)
1717
}
1818

19-
impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
19+
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
2020
/// Apply the pre-block logic for [EIP-2935]. This logic was introduced in
2121
/// Prague and updates historical block hashes in a special system
2222
/// contract. Unlike other system actions, this is NOT modeled as a

src/system/eip4788.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn eip4788_root_slot(timestamp: u64) -> U256 {
5555
eip4788_timestamp_slot(timestamp) + U256::from(HISTORY_BUFFER_LENGTH)
5656
}
5757

58-
impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
58+
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
5959
/// Apply a system transaction as specified in [EIP-4788]. The EIP-4788
6060
/// pre-block action was introduced in Cancun, and calls the beacon root
6161
/// contract to update the historical beacon root.

src/system/eip4895.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use alloy::eips::eip4895::Withdrawal;
33
use alloy_primitives::{map::HashMap, U256};
44
use revm::{primitives::EVMError, Database, DatabaseCommit};
55

6-
impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
6+
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
77
/// Apply the withdrawals to the EVM state.
88
pub fn apply_withdrawals<'b>(
99
&mut self,

src/system/eip7002.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl SystemTx {
4242
}
4343
}
4444

45-
impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
45+
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
4646
/// Apply a system transaction as specified in [EIP-7002]. The EIP-7002
4747
/// post-block action was introduced in Prague, and calls the withdrawal
4848
/// request contract to accumulate withdrawal requests.

src/system/eip7251.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl SystemTx {
4242
}
4343
}
4444

45-
impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
45+
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
4646
/// Apply a system transaction as specified in [EIP-7251]. The EIP-7251
4747
/// post-block action calls the consolidation request contract to process
4848
/// consolidation requests.

src/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use revm::inspectors::TracerEip3155;
1212

1313
pub use revm::test_utils as revm_test_utils;
1414

15-
impl<'a, Ext, State> Trevm<'a, Ext, InMemoryDB, State> {
15+
impl<Ext, State> Trevm<'_, Ext, InMemoryDB, State> {
1616
/// Modify an account with the provide closure. Returns the original
1717
/// account info
1818
pub fn test_modify_account<F>(&mut self, address: Address, f: F) -> AccountInfo

0 commit comments

Comments
 (0)