Skip to content

Commit

Permalink
fix(node): removed superfluous into_iter().collect() (#3885)
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer authored Nov 5, 2024
1 parent 4c5c32b commit d387f1a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion consensus/core/src/dag_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ impl DagState {
}
}

blocks.into_iter().collect()
blocks
}

/// Checks whether a block exists in the slot. The method checks only
Expand Down
2 changes: 1 addition & 1 deletion consensus/core/src/synchronizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ impl<C: NetworkClient, V: BlockVerifier, D: CoreThreadDispatcher> Synchronizer<C
.clone()
.into_iter()
.collect::<Vec<_>>(),
highest_rounds.clone().into_iter().collect::<Vec<_>>(),
highest_rounds.clone(),
request_timeout,
),
)
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-replay/src/replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ impl LocalExec {
})
.collect();
let gas_data = orig_tx.transaction_data().gas_data();
let gas_object_refs: Vec<_> = gas_data.clone().payment.into_iter().collect();
let gas_object_refs: Vec<_> = gas_data.clone().payment;
let receiving_objs = orig_tx
.transaction_data()
.receiving_objects()
Expand Down
6 changes: 3 additions & 3 deletions crates/iota-types/src/gas_model/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ pub fn initial_cost_schedule_v1() -> CostTable {
pub fn initial_cost_schedule_for_unit_tests() -> move_vm_test_utils::gas_schedule::CostTable {
let table = initial_cost_schedule_v1();
move_vm_test_utils::gas_schedule::CostTable {
instruction_tiers: table.instruction_tiers.into_iter().collect(),
stack_height_tiers: table.stack_height_tiers.into_iter().collect(),
stack_size_tiers: table.stack_size_tiers.into_iter().collect(),
instruction_tiers: table.instruction_tiers,
stack_height_tiers: table.stack_height_tiers,
stack_size_tiers: table.stack_size_tiers,
}
}

0 comments on commit d387f1a

Please sign in to comment.