Skip to content

Commit

Permalink
perf: rm redundant clones (#13299)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 11, 2024
1 parent 432e536 commit 8f6492d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/evm/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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
Expand Down

0 comments on commit 8f6492d

Please sign in to comment.