Skip to content

Commit

Permalink
Fixed a clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Mar 2, 2024
1 parent f67a5b0 commit f23f506
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Result<Vec<_>>>()?;
let tx_account_lock_limit = self.get_transaction_account_lock_limit();
Expand Down

0 comments on commit f23f506

Please sign in to comment.