diff --git a/matrix_sdk_crypto/src/store/sled.rs b/matrix_sdk_crypto/src/store/sled.rs index bf39fc34..7dcb0226 100644 --- a/matrix_sdk_crypto/src/store/sled.rs +++ b/matrix_sdk_crypto/src/store/sled.rs @@ -426,8 +426,11 @@ impl CryptoStore for SledStore { } async fn save_account(&self, account: ReadOnlyAccount) -> Result<()> { - let mut changes = Changes::default(); - changes.account = Some(account); + let changes = Changes { + account: Some(account), + ..Default::default() + }; + self.save_changes(changes).await }