suppress clippy
This commit is contained in:
@@ -313,6 +313,9 @@ fn execute_batches(
|
|||||||
let cost_model = CostModel::new();
|
let cost_model = CostModel::new();
|
||||||
let mut minimal_tx_cost = u64::MAX;
|
let mut minimal_tx_cost = u64::MAX;
|
||||||
let mut total_cost: u64 = 0;
|
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
|
let tx_costs = sanitized_txs
|
||||||
.iter()
|
.iter()
|
||||||
.map(|tx| {
|
.map(|tx| {
|
||||||
|
Reference in New Issue
Block a user