Skip to content

Commit

Permalink
chore: Remove clippy exception that is no longer needed (#30289)
Browse files Browse the repository at this point in the history
We use the Vec that results from .collect(), so the exception to allow a
needless collect is no longer appropriate.
  • Loading branch information
steviez authored Feb 14, 2023
1 parent 2ba7327 commit c617c34
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit c617c34

Please sign in to comment.