Skip to content

Commit

Permalink
chore: misc clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Feb 18, 2025
1 parent 048248c commit 0d2638e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/evm/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ where
contract: Address,
data: Bytes,
) -> Result<ResultAndState, Self::Error> {
#[allow(clippy::needless_update)] // side-effect of optimism fields
let tx = TxEnv {
caller,
kind: TxKind::Call(contract),
Expand Down
7 changes: 3 additions & 4 deletions crates/op-evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

use alloc::vec::Vec;
use alloy_evm::{Database, Evm, EvmEnv, EvmFactory};
use alloy_primitives::{Address, Bytes, TxKind, U256};
Expand All @@ -26,8 +28,6 @@ use revm_optimism::{
DefaultOp, OpBuilder, OpContext, OpHaltReason, OpSpecId, OpTransaction, OpTransactionError,
};

extern crate alloc;

/// OP EVM implementation.
#[allow(missing_debug_implementations)] // missing revm::OpContext Debug impl
pub struct OpEvm<DB: Database, I> {
Expand Down Expand Up @@ -105,7 +105,6 @@ where
contract: Address,
data: Bytes,
) -> Result<ResultAndState<Self::HaltReason>, Self::Error> {
#[allow(clippy::needless_update)] // side-effect of optimism fields
let tx = OpTransaction {
base: TxEnv {
caller,
Expand Down Expand Up @@ -174,9 +173,9 @@ impl EvmFactory<EvmEnv<OpSpecId>> for OpEvmFactory {
type Evm<DB: Database, I: Inspector<OpContext<DB>>> = OpEvm<DB, I>;
type Context<DB: Database> = OpContext<DB>;
type Tx = OpTransaction<TxEnv>;
type HaltReason = OpHaltReason;
type Error<DBError: core::error::Error + Send + Sync + 'static> =
EVMError<DBError, OpTransactionError>;
type HaltReason = OpHaltReason;

fn create_evm<DB: Database>(
&self,
Expand Down

0 comments on commit 0d2638e

Please sign in to comment.