crypto: Fix some clippy warnings
This commit is contained in:
parent
68df9b6ed2
commit
adca302dfe
2 changed files with 3 additions and 3 deletions
|
@ -1012,7 +1012,7 @@ impl KeyRequestMachine {
|
||||||
match self
|
match self
|
||||||
.store
|
.store
|
||||||
.import_secret(
|
.import_secret(
|
||||||
&secret_name,
|
secret_name,
|
||||||
std::mem::take(&mut event.content.secret),
|
std::mem::take(&mut event.content.secret),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
|
|
|
@ -311,8 +311,8 @@ impl Store {
|
||||||
"Successfully imported a private cross signing key"
|
"Successfully imported a private cross signing key"
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut changes = Changes::default();
|
let changes =
|
||||||
changes.private_identity = Some(identity.clone());
|
Changes { private_identity: Some(identity.clone()), ..Default::default() };
|
||||||
|
|
||||||
self.save_changes(changes).await?;
|
self.save_changes(changes).await?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue