From 90d383500d7989c8766947f3dc4fb202bc978e5e Mon Sep 17 00:00:00 2001 From: Dori Medini Date: Mon, 12 Aug 2024 16:04:10 +0300 Subject: [PATCH] fix: clippy errors Signed-off-by: Dori Medini --- Cargo.toml | 4 ++-- crates/blockifier/src/fee/actual_cost.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7bc0e6ecb6..37861debb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,8 +54,8 @@ test-case = "2.2.2" thiserror = "1.0.37" [workspace.lints.rust] -warnings = "deny" future-incompatible = "deny" nonstandard-style = "deny" rust-2018-idioms = "deny" -unused = "deny" +unused = { level = "deny", priority = -1 } +warnings = "deny" diff --git a/crates/blockifier/src/fee/actual_cost.rs b/crates/blockifier/src/fee/actual_cost.rs index 7e53d50bca..4d51ccd67d 100644 --- a/crates/blockifier/src/fee/actual_cost.rs +++ b/crates/blockifier/src/fee/actual_cost.rs @@ -189,7 +189,7 @@ impl<'a> ActualCostBuilder<'a> { let bouncer_resources = actual_resources.clone(); // Add reverted steps to actual_resources' n_steps for correct fee charge. - *actual_resources.0.get_mut(&abi_constants::N_STEPS_RESOURCE.to_string()).unwrap() += + *actual_resources.0.get_mut(abi_constants::N_STEPS_RESOURCE).unwrap() += self.n_reverted_steps; let tx_info = &self.tx_context.tx_info;