crypto: Fix another clippy warning.
parent
4e8ce4cb5d
commit
d1313b8614
|
@ -499,12 +499,10 @@ mod test {
|
||||||
async fn private_identity_creation() {
|
async fn private_identity_creation() {
|
||||||
let identity = PrivateCrossSigningIdentity::new(user_id()).await;
|
let identity = PrivateCrossSigningIdentity::new(user_id()).await;
|
||||||
|
|
||||||
assert!(identity
|
let master_key = identity.master_key.lock().await;
|
||||||
.master_key
|
let master_key = master_key.as_ref().unwrap();
|
||||||
.lock()
|
|
||||||
.await
|
assert!(master_key
|
||||||
.as_ref()
|
|
||||||
.unwrap()
|
|
||||||
.public_key
|
.public_key
|
||||||
.verify_subkey(
|
.verify_subkey(
|
||||||
&identity
|
&identity
|
||||||
|
@ -517,12 +515,7 @@ mod test {
|
||||||
)
|
)
|
||||||
.is_ok());
|
.is_ok());
|
||||||
|
|
||||||
assert!(identity
|
assert!(master_key
|
||||||
.master_key
|
|
||||||
.lock()
|
|
||||||
.await
|
|
||||||
.as_ref()
|
|
||||||
.unwrap()
|
|
||||||
.public_key
|
.public_key
|
||||||
.verify_subkey(
|
.verify_subkey(
|
||||||
&identity
|
&identity
|
||||||
|
|
Loading…
Reference in New Issue