diff --git a/openraft/src/raft/declare_raft_types_test.rs b/openraft/src/raft/declare_raft_types_test.rs index 2f575a10f..fa13ff6b3 100644 --- a/openraft/src/raft/declare_raft_types_test.rs +++ b/openraft/src/raft/declare_raft_types_test.rs @@ -1,5 +1,7 @@ //! Test the `declare_raft_types` macro with default values +#![allow(dead_code)] + use std::io::Cursor; use crate::declare_raft_types; diff --git a/openraft/src/raft/mod.rs b/openraft/src/raft/mod.rs index 99a5c3ba0..05ec57607 100644 --- a/openraft/src/raft/mod.rs +++ b/openraft/src/raft/mod.rs @@ -156,7 +156,6 @@ macro_rules! declare_raft_types { ($(#[$outer:meta])* $visibility:vis $id:ident: $($(#[$inner:meta])* $type_id:ident = $type:ty),* $(,)? ) => { $(#[$outer])* #[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Ord, PartialOrd)] - #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] $visibility struct $id {} impl $crate::RaftTypeConfig for $id {