mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-08 07:56:55 -04:00
crypto: Fix some clippy warnings.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user