From 544881f11ca10994e4b80bb9cd49769d66346f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 16 Feb 2021 10:52:19 +0100 Subject: [PATCH] crypto: Fix a clippy warning --- matrix_sdk_crypto/src/store/sled.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }