From 2d4c9e545025e7feba43807c926279bb266961e7 Mon Sep 17 00:00:00 2001 From: Sergei Blinov Date: Wed, 31 Jan 2024 04:41:50 +0100 Subject: [PATCH] cargo clippy --fix --- src/transaction_executor.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/transaction_executor.rs b/src/transaction_executor.rs index f38dcfc..615a6d6 100644 --- a/src/transaction_executor.rs +++ b/src/transaction_executor.rs @@ -1439,12 +1439,13 @@ fn outmsg_action_handler( _ => (), } let mut acc_balance_copy = ExtraCurrencyCollection::default(); - match acc_balance.other.iterate_with_keys(|key: u32, b| -> Result { + let predicate = |key: u32, b: tvm_block::VarUInteger32| -> Result { if !b.is_zero() { acc_balance_copy.set(&key, &b)?; } Ok(true) - }) { + }; + match acc_balance.other.iterate_with_keys(predicate) { Ok(false) | Err(_) => { log::warn!(target: "executor", "Cannot reduce account extra balance"); return Err(skip.map(|_| RESULT_CODE_INVALID_BALANCE).unwrap_or_default());