From b475d32d63861e4fdd45c91bc48e70c5292e0eef Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 17 Dec 2024 22:46:22 +0800 Subject: [PATCH] Fix serialization-compat-6 event type/kind --- notify-types/src/event.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notify-types/src/event.rs b/notify-types/src/event.rs index 43bb07fb..8de588d2 100644 --- a/notify-types/src/event.rs +++ b/notify-types/src/event.rs @@ -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.