crypto: Fix some clippy warnings.
parent
b67cd4ddd2
commit
b27f1b0e34
|
@ -804,7 +804,7 @@ pub(crate) mod test {
|
|||
let second = Device {
|
||||
inner: second,
|
||||
verification_machine,
|
||||
private_identity: private_identity.clone(),
|
||||
private_identity,
|
||||
own_identity: Some(identity.clone()),
|
||||
device_owner_identity: Some(UserIdentities::Own(identity.clone())),
|
||||
};
|
||||
|
|
|
@ -319,12 +319,12 @@ impl Sas {
|
|||
// TODO store the request as well.
|
||||
self.store.save_changes(changes).await?;
|
||||
Ok(merged_request
|
||||
.map(|r| VerificationResult::SignatureUpload(r))
|
||||
.map(VerificationResult::SignatureUpload)
|
||||
.unwrap_or(VerificationResult::Ok))
|
||||
} else {
|
||||
Ok(self
|
||||
.cancel()
|
||||
.map(|r| VerificationResult::Cancel(r))
|
||||
.map(VerificationResult::Cancel)
|
||||
.unwrap_or(VerificationResult::Ok))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue