From 87149d22d104f36d48eb402c497452581f26522a Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:22:58 +0100 Subject: [PATCH] refactor(iota-core): silence unused variable warning (#3918) Co-authored-by: Bing-Yang <51323441+bingyanglin@users.noreply.github.com> Co-authored-by: Thibault Martinez --- crates/iota-core/src/checkpoints/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);