Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wacban committed Jan 7, 2025
1 parent e9517cf commit be19d21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/chain/src/resharding/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ impl ReshardingManager {
// The left child contains all the delayed and buffered receipts from the
// parent so it should have identical congestion info.
if retain_mode == RetainMode::Left {
return Ok(parent_congestion_info.clone());
return Ok(parent_congestion_info);
}

// The right child contains all the delayed receipts from the parent but it
// has no buffered receipts. It's info needs to be computed by subtracting
// the parent's buffered receipts from the parent's congestion info.
let mut congestion_info = parent_congestion_info.clone();
let mut congestion_info = parent_congestion_info;
for shard_id in parent_shard_layout.shard_ids() {
let receipt_groups = ReceiptGroupsQueue::load(parent_trie, shard_id)?;
let Some(receipt_groups) = receipt_groups else {
Expand Down

0 comments on commit be19d21

Please sign in to comment.