diff --git a/crates/precompile/src/lib.rs b/crates/precompile/src/lib.rs index 87266d2a37..c1b9accafc 100644 --- a/crates/precompile/src/lib.rs +++ b/crates/precompile/src/lib.rs @@ -59,7 +59,7 @@ impl PrecompileOutput { } } } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug)] pub struct Precompiles { pub fun: HashMap, } @@ -70,7 +70,7 @@ impl Default for Precompiles { } } -#[derive(Clone, PartialEq, Eq, Hash)] +#[derive(Clone)] pub enum Precompile { Standard(StandardPrecompileFn), Env(EnvPrecompileFn), @@ -85,7 +85,7 @@ impl fmt::Debug for Precompile { } } -#[derive(Clone, Debug, PartialEq, Eq, Hash)] +#[derive(Clone, Debug)] pub struct PrecompileAddress(Address, Precompile); impl From for (Address, Precompile) { diff --git a/crates/revm/src/handler.rs b/crates/revm/src/handler.rs index 819cc49dd4..5751b6bf7b 100644 --- a/crates/revm/src/handler.rs +++ b/crates/revm/src/handler.rs @@ -25,9 +25,8 @@ type CalculateGasRefundHandle = fn(&Env, &Gas) -> u64; /// Handler acts as a proxy and allow to define different behavior for different /// sections of the code. This allows nice integration of different chains or /// to disable some mainnet behavior. -#[derive(Debug)] pub struct Handler { - // Uses env, call resul and returned gas from the call to determine the gas + // Uses env, call result and returned gas from the call to determine the gas // that is returned from transaction execution.. pub call_return: CallReturnHandle, pub reimburse_caller: ReimburseCallerHandle,