state-res: Remove unnecessary serde attributes

This commit is contained in:
Kévin Commaille 2022-06-24 10:56:40 +02:00 committed by Kévin Commaille
parent b38efe75c3
commit ca3ca023a4

View File

@ -341,14 +341,14 @@ struct PowerLevelsContentFields {
feature = "compat", feature = "compat",
serde(deserialize_with = "ruma_common::serde::btreemap_deserialize_v1_powerlevel_values") serde(deserialize_with = "ruma_common::serde::btreemap_deserialize_v1_powerlevel_values")
)] )]
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")] #[serde(default)]
users: BTreeMap<OwnedUserId, Int>, users: BTreeMap<OwnedUserId, Int>,
#[cfg_attr( #[cfg_attr(
feature = "compat", feature = "compat",
serde(deserialize_with = "ruma_common::serde::deserialize_v1_powerlevel") serde(deserialize_with = "ruma_common::serde::deserialize_v1_powerlevel")
)] )]
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")] #[serde(default)]
users_default: Int, users_default: Int,
} }