diff --git a/crates/context/interface/src/cfg/gas_params.rs b/crates/context/interface/src/cfg/gas_params.rs index 9236d2d543..ca7c52a451 100644 --- a/crates/context/interface/src/cfg/gas_params.rs +++ b/crates/context/interface/src/cfg/gas_params.rs @@ -91,7 +91,7 @@ mod serde { impl Default for GasParams { fn default() -> Self { - Self::new_spec(SpecId::default()).clone() + Self::new_spec(SpecId::default()) } } diff --git a/crates/context/interface/src/host.rs b/crates/context/interface/src/host.rs index d3fb01ca58..e4efb22081 100644 --- a/crates/context/interface/src/host.rs +++ b/crates/context/interface/src/host.rs @@ -213,7 +213,7 @@ impl DummyHost { /// Create a new dummy host with the given spec. pub fn new(spec: SpecId) -> Self { Self { - gas_params: GasParams::new_spec(spec).clone(), + gas_params: GasParams::new_spec(spec), } } }