cyrpto: Fix a clippy warning.

master
Damir Jelić 2020-07-29 14:50:39 +02:00
parent 5058f09111
commit 5a58fdff98
1 changed files with 3 additions and 4 deletions

View File

@ -86,8 +86,8 @@ impl VerificationMachine {
event: &mut AnyToDeviceEvent,
) -> Result<(), CryptoStoreError> {
match event {
AnyToDeviceEvent::KeyVerificationStart(e) => match &e.content {
StartEventContent::MSasV1(content) => {
AnyToDeviceEvent::KeyVerificationStart(e) => {
if let StartEventContent::MSasV1(content) = &e.content {
if let Some(d) = self
.store
.read()
@ -103,8 +103,7 @@ impl VerificationMachine {
}
};
}
_ => (),
},
}
AnyToDeviceEvent::KeyVerificationCancel(e) => {
self.verifications.remove(&e.content.transaction_id);
}