From 347ae7253153747cc0c41066acf6fa701323568f Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 3 Nov 2021 18:26:31 +0100 Subject: [PATCH] client-api: Revert change of serialized name of thredparty_id_creds under compat feature --- crates/ruma-client-api/src/r0/uiaa.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/ruma-client-api/src/r0/uiaa.rs b/crates/ruma-client-api/src/r0/uiaa.rs index 6ae1eec7..e5c408cd 100644 --- a/crates/ruma-client-api/src/r0/uiaa.rs +++ b/crates/ruma-client-api/src/r0/uiaa.rs @@ -523,14 +523,10 @@ impl IncomingOAuth2 { #[serde(tag = "type", rename = "m.login.email.identity")] pub struct EmailIdentity<'a> { /// Thirdparty identifier credentials. - #[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))] + #[cfg_attr(rename = "threepidCreds")] #[cfg_attr( feature = "compat", - serde( - rename = "threepid_creds", - alias = "threepidCreds", - deserialize_with = "deserialize_thirdparty_id_creds" - ) + serde(alias = "threepid_creds", deserialize_with = "deserialize_thirdparty_id_creds") )] pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials], @@ -558,14 +554,10 @@ impl IncomingEmailIdentity { #[serde(tag = "type", rename = "m.login.msisdn")] pub struct Msisdn<'a> { /// Thirdparty identifier credentials. - #[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))] + #[cfg_attr(rename = "threepidCreds")] #[cfg_attr( feature = "compat", - serde( - rename = "threepid_creds", - alias = "threepidCreds", - deserialize_with = "deserialize_thirdparty_id_creds" - ) + serde(alias = "threepid_creds", deserialize_with = "deserialize_thirdparty_id_creds") )] pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],