crypto: Fix some clippy warnings

This commit is contained in:
Damir Jelić 2021-08-02 09:42:58 +02:00
parent 68df9b6ed2
commit adca302dfe
2 changed files with 3 additions and 3 deletions

View file

@ -1012,7 +1012,7 @@ impl KeyRequestMachine {
match self
.store
.import_secret(
&secret_name,
secret_name,
std::mem::take(&mut event.content.secret),
)
.await

View file

@ -311,8 +311,8 @@ impl Store {
"Successfully imported a private cross signing key"
);
let mut changes = Changes::default();
changes.private_identity = Some(identity.clone());
let changes =
Changes { private_identity: Some(identity.clone()), ..Default::default() };
self.save_changes(changes).await?;
}