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;