Skip to content

Commit 433b74f

Browse files
authored
fix(levm): remove unneeded clone of transaction log (#5028)
**Motivation** Cloning the transaction log can be expensive (blocks may contain thousands of logs) and this clone isn't needed. **Description** Removes a clone of the transaction logs and a nearby (but much less impactful) unneeded clone.
1 parent 6c39fc2 commit 433b74f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/vm/backends/levm/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ impl LEVM {
5757
cumulative_gas_used += report.gas_used;
5858
let receipt = Receipt::new(
5959
tx.tx_type(),
60-
matches!(report.result.clone(), TxResult::Success),
60+
matches!(report.result, TxResult::Success),
6161
cumulative_gas_used,
62-
report.logs.clone(),
62+
report.logs,
6363
);
6464

6565
receipts.push(receipt);

0 commit comments

Comments
 (0)