chore: Address PR feedback

This commit is contained in:
Jeff Bencin
2024-03-04 10:08:00 -05:00
parent ad27ac4ded
commit 5f4d1fb2e7

View File

@@ -812,8 +812,9 @@ impl TrackerData {
self.contract_call_circuits = contract_call_circuits;
let iter = ClarityCostFunction::ALL.iter();
let mut cost_contracts = HashMap::with_capacity(iter.len());
let mut m = HashMap::with_capacity(iter.len());
let iter_len = iter.len();
let mut cost_contracts = HashMap::with_capacity(iter_len);
let mut m = HashMap::with_capacity(iter_len);
for f in iter {
let cost_function_ref = cost_function_references.remove(f).unwrap_or_else(|| {
ClarityCostFunctionReference::new(boot_costs_id.clone(), f.get_name())