From 076420d798737188c0e7327124510b24b01e1c70 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 3 Nov 2021 18:13:58 +0100 Subject: [PATCH] client-api: Fix serde attributes --- crates/ruma-client-api/src/r0/uiaa.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruma-client-api/src/r0/uiaa.rs b/crates/ruma-client-api/src/r0/uiaa.rs index b6717eba..0a4b6ad4 100644 --- a/crates/ruma-client-api/src/r0/uiaa.rs +++ b/crates/ruma-client-api/src/r0/uiaa.rs @@ -524,7 +524,7 @@ impl IncomingOAuth2 { pub struct EmailIdentity<'a> { /// Thirdparty identifier credentials. #[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))] - #[cfg_attr(feature = "compat", rename = "threepid_creds", alias = "threepidCreds")] + #[cfg_attr(feature = "compat", serde(rename = "threepid_creds", alias = "threepidCreds"))] pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials], /// The value of the session key given by the homeserver, if any. @@ -552,7 +552,7 @@ impl IncomingEmailIdentity { pub struct Msisdn<'a> { /// Thirdparty identifier credentials. #[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))] - #[cfg_attr(feature = "compat", rename = "threepid_creds", alias = "threepidCreds")] + #[cfg_attr(feature = "compat", serde(rename = "threepid_creds", alias = "threepidCreds"))] pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials], /// The value of the session key given by the homeserver, if any.