diff --git a/crates/iota-core/src/checkpoints/mod.rs b/crates/iota-core/src/checkpoints/mod.rs index b466e405866..82749fa472a 100644 --- a/crates/iota-core/src/checkpoints/mod.rs +++ b/crates/iota-core/src/checkpoints/mod.rs @@ -1104,13 +1104,13 @@ impl CheckpointBuilder { let _scope = monitored_scope("CheckpointBuilder::causal_sort"); let mut sorted: Vec = 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);