Skip to content

Commit

Permalink
Refactor: reference the feature flag of the openraft crate
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Nov 30, 2024
1 parent 8f715db commit eed8af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openraft/src/raft/declare_raft_types_test.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion openraft/src/raft/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eed8af3

Please sign in to comment.