cyrpto: Fix a clippy warning.
parent
5058f09111
commit
5a58fdff98
|
@ -86,8 +86,8 @@ impl VerificationMachine {
|
||||||
event: &mut AnyToDeviceEvent,
|
event: &mut AnyToDeviceEvent,
|
||||||
) -> Result<(), CryptoStoreError> {
|
) -> Result<(), CryptoStoreError> {
|
||||||
match event {
|
match event {
|
||||||
AnyToDeviceEvent::KeyVerificationStart(e) => match &e.content {
|
AnyToDeviceEvent::KeyVerificationStart(e) => {
|
||||||
StartEventContent::MSasV1(content) => {
|
if let StartEventContent::MSasV1(content) = &e.content {
|
||||||
if let Some(d) = self
|
if let Some(d) = self
|
||||||
.store
|
.store
|
||||||
.read()
|
.read()
|
||||||
|
@ -103,8 +103,7 @@ impl VerificationMachine {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
_ => (),
|
}
|
||||||
},
|
|
||||||
AnyToDeviceEvent::KeyVerificationCancel(e) => {
|
AnyToDeviceEvent::KeyVerificationCancel(e) => {
|
||||||
self.verifications.remove(&e.content.transaction_id);
|
self.verifications.remove(&e.content.transaction_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue