perf: rm redundant clones (#13299)

This commit is contained in:
Matthias Seitz
2024-12-11 15:21:31 +01:00
committed by GitHub
parent 432e536d4b
commit 8f6492d70e

View File

@ -45,7 +45,7 @@ where
let mut builder =
EvmBuilder::default().with_db(self.db).with_external_context(self.external_context);
if let Some(env) = self.env {
builder = builder.with_spec_id(env.clone().spec_id());
builder = builder.with_spec_id(env.spec_id());
builder = builder.with_env(env.env);
}
@ -61,7 +61,7 @@ where
let mut builder =
EvmBuilder::default().with_db(self.db).with_external_context(self.external_context);
if let Some(env) = self.env {
builder = builder.with_spec_id(env.clone().spec_id());
builder = builder.with_spec_id(env.spec_id());
builder = builder.with_env(env.env);
}
builder