chore: Remove clippy exception that is no longer needed (#30289)

We use the Vec that results from .collect(), so the exception to allow a
needless collect is no longer appropriate.
This commit is contained in:
steviez 2023-02-14 00:07:41 -06:00 committed by GitHub
parent 2ba7327027
commit c617c345d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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| {