From 8cf09217d6bf335f548010c1fd27168ccddb351f Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 1 May 2025 11:55:59 +0200 Subject: [PATCH] Switch to structs in yet more places --- bindings/matrix-sdk-ffi/src/ruma.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/matrix-sdk-ffi/src/ruma.rs b/bindings/matrix-sdk-ffi/src/ruma.rs index dfcf87ca0..759fd7082 100644 --- a/bindings/matrix-sdk-ffi/src/ruma.rs +++ b/bindings/matrix-sdk-ffi/src/ruma.rs @@ -1316,7 +1316,7 @@ pub enum SecretStorageEncryptionAlgorithm { /// /// Secrets using this method are encrypted using AES-CTR-256 and /// authenticated using HMAC-SHA-256. - V1AesHmacSha2(SecretStorageV1AesHmacSha2Properties), + V1AesHmacSha2 { properties: SecretStorageV1AesHmacSha2Properties }, } impl TryFrom for SecretStorageEncryptionAlgorithm { @@ -1325,7 +1325,7 @@ impl TryFrom for SecretStorageEncryptionAl fn try_from(value: RumaSecretStorageEncryptionAlgorithm) -> Result { match value { RumaSecretStorageEncryptionAlgorithm::V1AesHmacSha2(properties) => { - Ok(Self::V1AesHmacSha2(properties.into())) + Ok(Self::V1AesHmacSha2 { properties: properties.into() }) } _ => Err("Unsupported encryption algorithm".to_owned()), } @@ -1532,7 +1532,7 @@ pub enum TagName { ServerNotice, /// `u.*`: User-defined tag - User(UserTagName), + User { name: UserTagName }, } impl TryFrom for TagName { @@ -1543,7 +1543,7 @@ impl TryFrom for TagName { RumaTagName::Favorite => Ok(Self::Favorite), RumaTagName::LowPriority => Ok(Self::LowPriority), RumaTagName::ServerNotice => Ok(Self::ServerNotice), - RumaTagName::User(name) => Ok(Self::User(name.into())), + RumaTagName::User(name) => Ok(Self::User { name: name.into() }), _ => Err("Unsupported tag name".to_owned()), } }