Skip to content

Commit

Permalink
refactor(iota-core): silence unused variable warning (#3918)
Browse files Browse the repository at this point in the history
Co-authored-by: Bing-Yang <[email protected]>
Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2024
1 parent 45b6dec commit 87149d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/iota-core/src/checkpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,13 +1104,13 @@ impl CheckpointBuilder {

let _scope = monitored_scope("CheckpointBuilder::causal_sort");
let mut sorted: Vec<TransactionEffects> = Vec::with_capacity(unsorted.len() + 1);
if let Some((ccp_digest, ccp_effects)) = consensus_commit_prologue {
if let Some((_ccp_digest, ccp_effects)) = consensus_commit_prologue {
#[cfg(debug_assertions)]
{
// When consensus_commit_prologue is extracted, it should not be included in the
// `unsorted`.
for tx in unsorted.iter() {
assert!(tx.transaction_digest() != &ccp_digest);
assert!(tx.transaction_digest() != &_ccp_digest);
}
}
sorted.push(ccp_effects);
Expand Down

0 comments on commit 87149d2

Please sign in to comment.