mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
Switch to struct
This commit is contained in:
committed by
Damir Jelić
parent
da67bacfbf
commit
c21f97274c
@@ -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<RumaGlobalAccountDataEventType> for AccountDataEventType {
|
||||
@@ -1049,7 +1049,7 @@ impl TryFrom<RumaGlobalAccountDataEventType> 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()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user