From ee2052f4fc8430beb10f8da7627baaccb10eef44 Mon Sep 17 00:00:00 2001 From: Steven Czabaniuk Date: Mon, 13 Feb 2023 13:35:35 -0600 Subject: [PATCH] chore: Remove clippy exception that is no longer needed We use the Vec that results from .collect(), so the exception to allow a needless collect is no longer appropriate. --- ledger/src/blockstore_processor.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 69f7094d83dd0e..dda4f05375ce83 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -328,9 +328,6 @@ fn execute_batches( 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| {