From f4a8ef63061e31249ac92f0019bf72ae64e05919 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 31 Jan 2022 20:42:15 +0100 Subject: [PATCH] client-api: Fix todo comment formatting --- crates/ruma-client-api/src/r0/account.rs | 2 +- crates/ruma-client-api/src/r0/uiaa.rs | 6 +++--- crates/ruma-client-api/tests/uiaa.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/ruma-client-api/src/r0/account.rs b/crates/ruma-client-api/src/r0/account.rs index 30a3033a..6f2c5440 100644 --- a/crates/ruma-client-api/src/r0/account.rs +++ b/crates/ruma-client-api/src/r0/account.rs @@ -3,7 +3,7 @@ pub mod add_3pid; pub mod bind_3pid; pub mod change_password; -#[cfg(feature = "unstable-spec")] // todo: v1.2 +#[cfg(feature = "unstable-spec")] // todo: v1.2 pub mod check_registration_token_validity; pub mod deactivate; pub mod delete_3pid; diff --git a/crates/ruma-client-api/src/r0/uiaa.rs b/crates/ruma-client-api/src/r0/uiaa.rs index 0c186312..d3263873 100644 --- a/crates/ruma-client-api/src/r0/uiaa.rs +++ b/crates/ruma-client-api/src/r0/uiaa.rs @@ -210,7 +210,7 @@ impl IncomingAuthData { Self::EmailIdentity(_) => Some(AuthType::EmailIdentity), Self::Msisdn(_) => Some(AuthType::Msisdn), Self::Dummy(_) => Some(AuthType::Dummy), - #[cfg(feature = "unstable-spec")] // todo: v1.2 + #[cfg(feature = "unstable-spec")] // todo: v1.2 Self::RegistrationToken(_) => Some(AuthType::RegistrationToken), Self::FallbackAcknowledgement(_) => None, Self::_Custom(c) => Some(AuthType::_Custom(PrivOwnedStr(c.auth_type.as_str().into()))), @@ -227,7 +227,7 @@ impl IncomingAuthData { Self::EmailIdentity(x) => x.session.as_deref(), Self::Msisdn(x) => x.session.as_deref(), Self::Dummy(x) => x.session.as_deref(), - #[cfg(feature = "unstable-spec")] // todo: v1.2 + #[cfg(feature = "unstable-spec")] // todo: v1.2 Self::RegistrationToken(x) => x.session.as_deref(), Self::FallbackAcknowledgement(x) => Some(&x.session), Self::_Custom(x) => x.session.as_deref(), @@ -270,7 +270,7 @@ impl IncomingAuthData { thirdparty_id_creds: &x.thirdparty_id_creds, session: None, })), - #[cfg(feature = "unstable-spec")] // todo: v1.2 + #[cfg(feature = "unstable-spec")] // todo: v1.2 Self::RegistrationToken(x) => { Cow::Owned(serialize(RegistrationToken { token: &x.token, session: None })) } diff --git a/crates/ruma-client-api/tests/uiaa.rs b/crates/ruma-client-api/tests/uiaa.rs index 988ede2a..39f5e291 100644 --- a/crates/ruma-client-api/tests/uiaa.rs +++ b/crates/ruma-client-api/tests/uiaa.rs @@ -65,7 +65,7 @@ fn deserialize_auth_data_direct_request() { } #[test] -#[cfg(feature = "unstable-spec")] // todo: v1.2 +#[cfg(feature = "unstable-spec")] // todo: v1.2 fn serialize_auth_data_registration_token() { let auth_data = AuthData::RegistrationToken( assign!(uiaa::RegistrationToken::new("mytoken"), { session: Some("session") }), @@ -82,7 +82,7 @@ fn serialize_auth_data_registration_token() { } #[test] -#[cfg(feature = "unstable-spec")] // todo: v1.2 +#[cfg(feature = "unstable-spec")] // todo: v1.2 fn deserialize_auth_data_registration_token() { let json = json!({ "type": "m.login.registration_token",