From 98b80152e4210ec354598df38d3286dfe099436f Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Tue, 16 Jul 2024 14:51:57 -0400 Subject: [PATCH] clippy --- crates/katana/executor/src/implementation/blockifier/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/katana/executor/src/implementation/blockifier/utils.rs b/crates/katana/executor/src/implementation/blockifier/utils.rs index 80ea977ff3..6c3d651ef8 100644 --- a/crates/katana/executor/src/implementation/blockifier/utils.rs +++ b/crates/katana/executor/src/implementation/blockifier/utils.rs @@ -91,7 +91,7 @@ pub fn transact( // these cases, we still want to calculate the fee. let fee = if info.transaction_receipt.fee == Fee(0) { get_fee_by_gas_vector( - &block_context.block_info(), + block_context.block_info(), info.transaction_receipt.gas, &fee_type, ) @@ -403,7 +403,7 @@ pub(super) fn state_update_from_cached_state( FlattenedSierraClass, > = HashMap::new(); - for (class_hash, _) in &state_diff.compiled_class_hashes { + for class_hash in state_diff.compiled_class_hashes.keys() { let hash = class_hash.0; let class = state.class(hash).unwrap().expect("must exist if declared");