Skip to content

Commit

Permalink
Fix serialization-compat-6 event type/kind
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Dec 17, 2024
1 parent 343d0ef commit b475d32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notify-types/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ pub struct Event {
all(feature = "serde", not(feature = "serialization-compat-6")),
serde(flatten)
)]
#[cfg_attr(
all(feature = "serde", feature = "serialization-compat-6"),
serde(rename = "type")
)]
pub kind: EventKind,

/// Paths the event is about, if known.
Expand Down

0 comments on commit b475d32

Please sign in to comment.