crypto: Fix a clippy warning

This commit is contained in:
Damir Jelić 2021-02-16 10:52:19 +01:00
parent ef5d7ca579
commit 544881f11c

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
}