From 9f6468682a1d8d0af23bc5dd92a32ce9c28dc748 Mon Sep 17 00:00:00 2001 From: Petar Radovic Date: Wed, 29 Apr 2026 15:26:11 +0200 Subject: [PATCH] clippy --- sequencer/core/src/block_store.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sequencer/core/src/block_store.rs b/sequencer/core/src/block_store.rs index 38f79cf2..e85b5d33 100644 --- a/sequencer/core/src/block_store.rs +++ b/sequencer/core/src/block_store.rs @@ -68,6 +68,7 @@ impl SequencerStore { } /// Returns the transaction corresponding to the given hash, if it exists in the blockchain. + #[must_use] pub fn get_transaction_by_hash(&self, hash: HashType) -> Option { let block_id = *self.tx_hash_to_block_map.get(&hash)?; let block = self @@ -89,10 +90,12 @@ impl SequencerStore { Ok(self.dbio.latest_block_meta()?) } + #[must_use] pub const fn genesis_id(&self) -> u64 { self.genesis_id } + #[must_use] pub const fn signing_key(&self) -> &nssa::PrivateKey { &self.signing_key } @@ -113,6 +116,7 @@ impl SequencerStore { Ok(()) } + #[must_use] pub fn get_nssa_state(&self) -> Option { self.dbio.get_nssa_state().ok() }