crypto: Fix a clippy warning

master
Damir Jelić 2021-02-16 10:52:19 +01:00
parent ef5d7ca579
commit 544881f11c
1 changed files with 5 additions and 2 deletions

View File

@ -426,8 +426,11 @@ impl CryptoStore for SledStore {
} }
async fn save_account(&self, account: ReadOnlyAccount) -> Result<()> { async fn save_account(&self, account: ReadOnlyAccount) -> Result<()> {
let mut changes = Changes::default(); let changes = Changes {
changes.account = Some(account); account: Some(account),
..Default::default()
};
self.save_changes(changes).await self.save_changes(changes).await
} }