diff --git a/crates/ruma-common/src/push.rs b/crates/ruma-common/src/push.rs index 6ded08f8..665f32ec 100644 --- a/crates/ruma-common/src/push.rs +++ b/crates/ruma-common/src/push.rs @@ -55,27 +55,27 @@ pub use self::{ #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Ruleset { /// These rules configure behavior for (unencrypted) messages that match certain patterns. - #[serde(default, skip_serializing_if = "IndexSet::is_empty")] + #[serde(default)] pub content: IndexSet, /// These user-configured rules are given the highest priority. /// /// This field is named `override_` instead of `override` because the latter is a reserved /// keyword in Rust. - #[serde(rename = "override", default, skip_serializing_if = "IndexSet::is_empty")] + #[serde(rename = "override", default)] pub override_: IndexSet, /// These rules change the behavior of all messages for a given room. - #[serde(default, skip_serializing_if = "IndexSet::is_empty")] + #[serde(default)] pub room: IndexSet>, /// These rules configure notification behavior for messages from a specific Matrix user ID. - #[serde(default, skip_serializing_if = "IndexSet::is_empty")] + #[serde(default)] pub sender: IndexSet>, /// These rules are identical to override rules, but have a lower priority than `content`, /// `room` and `sender` rules. - #[serde(default, skip_serializing_if = "IndexSet::is_empty")] + #[serde(default)] pub underride: IndexSet, }