From c21f97274cb3f740ca56ef848d8e4ec13fe3a3a7 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 1 May 2025 07:37:46 +0200 Subject: [PATCH] Switch to struct --- bindings/matrix-sdk-ffi/src/ruma.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/matrix-sdk-ffi/src/ruma.rs b/bindings/matrix-sdk-ffi/src/ruma.rs index 3e9b0dc44..dfcf87ca0 100644 --- a/bindings/matrix-sdk-ffi/src/ruma.rs +++ b/bindings/matrix-sdk-ffi/src/ruma.rs @@ -1033,7 +1033,7 @@ pub enum AccountDataEventType { /// m.secret_storage.default_key SecretStorageDefaultKey, /// m.secret_storage.key.* - SecretStorageKey(String), + SecretStorageKey { key_id: String }, } impl TryFrom for AccountDataEventType { @@ -1049,7 +1049,7 @@ impl TryFrom for AccountDataEventType { Ok(Self::SecretStorageDefaultKey) } RumaGlobalAccountDataEventType::SecretStorageKey(key_id) => { - Ok(Self::SecretStorageKey(key_id)) + Ok(Self::SecretStorageKey { key_id }) } _ => Err("Unsupported account data event type".to_owned()), }