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<()> {
let mut changes = Changes::default();
changes.account = Some(account);
let changes = Changes {
account: Some(account),
..Default::default()
};
self.save_changes(changes).await
}