Skip to content

Commit 6bd6031

Browse files
committed
Remove redundant clone
1 parent 5cc7682 commit 6bd6031

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

crates/debugging/src/contracts_data_store.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use std::hash::Hash;
1414

1515
/// Data structure containing information about contracts,
1616
/// including their ABI, names, selectors and programs that will be used to create a [`Trace`](crate::Trace).
17-
#[derive(Clone)]
1817
pub struct ContractsDataStore {
1918
abi: HashMap<ClassHash, Vec<AbiEntry>>,
2019
contract_names: HashMap<ClassHash, ContractName>,

crates/forge-runner/src/test_case_summary.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,7 @@ impl TestCaseSummary<Single> {
304304

305305
let gas_info = SingleTestGasInfo::new(gas_used);
306306
let gas_info = if gas_report_enabled {
307-
gas_info.get_with_report_data(
308-
&call_trace.borrow(),
309-
&contracts_data_store,
310-
)
307+
gas_info.get_with_report_data(&call_trace.borrow(), &contracts_data_store)
311308
} else {
312309
gas_info
313310
};

0 commit comments

Comments
 (0)