Skip to content

Commit

Permalink
Fix: Split serde bound for RaftError into serialize and deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
tvsfx committed Jan 16, 2024
1 parent 8261589 commit 0799972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openraft/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ use crate::Vote;
#[cfg_attr(
feature = "serde",
derive(serde::Deserialize, serde::Serialize),
serde(bound = "E:serde::Serialize + for <'d> serde::Deserialize<'d>")
serde(bound(serialize = "E: serde::Serialize")),
serde(bound(deserialize = "E: for <'d> serde::Deserialize<'d>"))
)]
pub enum RaftError<NID, E = Infallible>
where NID: NodeId
Expand Down

0 comments on commit 0799972

Please sign in to comment.