Skip to content

Commit

Permalink
lint: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Dec 2, 2024
1 parent 32c36a8 commit 8a85f86
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ impl<'a, Ext, Db: Database + DatabaseCommit, TrevmState: HasBlock> Trevm<'a, Ext

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

impl<'a, Ext, Db: Database> EvmNeedsBlock<'a, Ext, State<Db>> {
impl< Ext, Db: Database> EvmNeedsBlock<'_, Ext, State<Db>> {
/// Finish execution and return the outputs.
///
/// ## Panics
Expand Down
2 changes: 1 addition & 1 deletion src/system/eip2935.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn eip2935_slot(block_num: u64) -> U256 {
U256::from(block_num % BLOCKHASH_SERVE_WINDOW as u64)
}

impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
/// Apply the pre-block logic for [EIP-2935]. This logic was introduced in
/// Prague and updates historical block hashes in a special system
/// contract. Unlike other system actions, this is NOT modeled as a
Expand Down
2 changes: 1 addition & 1 deletion src/system/eip4788.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn eip4788_root_slot(timestamp: u64) -> U256 {
eip4788_timestamp_slot(timestamp) + U256::from(HISTORY_BUFFER_LENGTH)
}

impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
/// Apply a system transaction as specified in [EIP-4788]. The EIP-4788
/// pre-block action was introduced in Cancun, and calls the beacon root
/// contract to update the historical beacon root.
Expand Down
2 changes: 1 addition & 1 deletion src/system/eip4895.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use alloy::eips::eip4895::Withdrawal;
use alloy_primitives::{map::HashMap, U256};
use revm::{primitives::EVMError, Database, DatabaseCommit};

impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
/// Apply the withdrawals to the EVM state.
pub fn apply_withdrawals<'b>(
&mut self,
Expand Down
2 changes: 1 addition & 1 deletion src/system/eip7002.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl SystemTx {
}
}

impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
/// Apply a system transaction as specified in [EIP-7002]. The EIP-7002
/// post-block action was introduced in Prague, and calls the withdrawal
/// request contract to accumulate withdrawal requests.
Expand Down
2 changes: 1 addition & 1 deletion src/system/eip7251.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl SystemTx {
}
}

impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
impl<Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'_, Ext, Db> {
/// Apply a system transaction as specified in [EIP-7251]. The EIP-7251
/// post-block action calls the consolidation request contract to process
/// consolidation requests.
Expand Down
2 changes: 1 addition & 1 deletion src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use revm::inspectors::TracerEip3155;

pub use revm::test_utils as revm_test_utils;

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

0 comments on commit 8a85f86

Please sign in to comment.