From 96e1bf76a0f8e9306aeeec1a2f0334355dca7933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Tue, 5 Nov 2024 21:02:54 +0100 Subject: [PATCH] refactor(iota-core): silence unused variable warning --- 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);