From 9dda7c79b54c61c0b9bd2fc10923b57c706e8d7f Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Mon, 2 Dec 2024 23:30:44 +0900 Subject: [PATCH] clippy: remove empty lines under comment documents (#927) --- nomos-mix/message/src/mock/mod.rs | 5 +---- nomos-services/storage/src/backends/rocksdb.rs | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/nomos-mix/message/src/mock/mod.rs b/nomos-mix/message/src/mock/mod.rs index fcb8cf6f..bdececee 100644 --- a/nomos-mix/message/src/mock/mod.rs +++ b/nomos-mix/message/src/mock/mod.rs @@ -3,12 +3,8 @@ pub mod error; use error::Error; use crate::MixMessage; -// TODO: Remove all the mock below once the actual implementation is integrated to the system. -// -/// A mock implementation of the Sphinx encoding. const NODE_ID_SIZE: usize = 32; - // TODO: Move MAX_PAYLOAD_SIZE and MAX_LAYERS to the upper layer (service layer). const MAX_PAYLOAD_SIZE: usize = 2048; const PAYLOAD_PADDING_SEPARATOR: u8 = 0x01; @@ -17,6 +13,7 @@ const MAX_LAYERS: usize = 5; pub const MESSAGE_SIZE: usize = NODE_ID_SIZE * MAX_LAYERS + MAX_PAYLOAD_SIZE + PAYLOAD_PADDING_SEPARATOR_SIZE; +/// A mock implementation of the Sphinx encoding. #[derive(Clone, Debug)] pub struct MockMixMessage; diff --git a/nomos-services/storage/src/backends/rocksdb.rs b/nomos-services/storage/src/backends/rocksdb.rs index f5b12688..e0b0da97 100644 --- a/nomos-services/storage/src/backends/rocksdb.rs +++ b/nomos-services/storage/src/backends/rocksdb.rs @@ -41,7 +41,6 @@ impl StorageTransaction for Transaction { } /// Rocks storage backend - pub struct RocksBackend { rocks: Arc, _serde_op: PhantomData,