From f23f506307a4d4bab49cce60ebb8563675ba91c7 Mon Sep 17 00:00:00 2001 From: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> Date: Sat, 2 Mar 2024 03:22:27 -0800 Subject: [PATCH] Fixed a clippy issue --- runtime/src/bank.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 2988cf512d2b18..684cdb67daaeae 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -4200,14 +4200,12 @@ impl Bank { let sanitized_txs = txs .into_iter() .map(|tx| { - SanitizedTransaction::try_create(tx, MessageHash::Compute, None, self).and_then( - |txn| { - Ok(ExtendedSanitizedTransaction { - transaction: txn, - start_time: None, - }) - }, - ) + SanitizedTransaction::try_create(tx, MessageHash::Compute, None, self).map(|txn| { + ExtendedSanitizedTransaction { + transaction: txn, + start_time: None, + } + }) }) .collect::>>()?; let tx_account_lock_limit = self.get_transaction_account_lock_limit();