From a146f2d8537d4a4302057099856f76923d045e21 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Sat, 5 Feb 2022 12:23:38 -0800 Subject: [PATCH] suppress clippy --- ledger/src/blockstore_processor.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 55d0701aa8..810c8f5bd4 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -313,6 +313,9 @@ fn execute_batches( let cost_model = CostModel::new(); let mut minimal_tx_cost = u64::MAX; let mut total_cost: u64 = 0; + // Allowing collect here, since it also computes the minimal tx cost, and aggregate cost. + // These two values are later used for checking if the tx_costs vector needs to be iterated over. + #[allow(clippy::needless_collect)] let tx_costs = sanitized_txs .iter() .map(|tx| {