From a204cb56dbc20f72a1cbd0e9d6c827bbfd4082f2 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 15 Dec 2024 15:13:13 -0500 Subject: [PATCH] remove stupid skip_serializing_if on push rulesets Signed-off-by: strawberry --- crates/ruma-common/src/push.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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, }