From 4094f9d34df376f9475fb9a36589fddd3d03e538 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 11 Dec 2024 14:51:39 +0100 Subject: [PATCH] perf: rm redundant clones --- crates/evm/src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/evm/src/builder.rs b/crates/evm/src/builder.rs index 4b7511494a37..b955e41a255a 100644 --- a/crates/evm/src/builder.rs +++ b/crates/evm/src/builder.rs @@ -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