Remove pointless match
This commit is contained in:
parent
17faaaa56e
commit
d47f1831a7
@ -494,9 +494,7 @@ mod tests {
|
|||||||
|
|
||||||
let event = deserialize! {source, AnyToDeviceEvent::KeyVerificationStart};
|
let event = deserialize! {source, AnyToDeviceEvent::KeyVerificationStart};
|
||||||
|
|
||||||
let content = match &event.content {
|
let StartEventContent::MSasV1(content) = event.content;
|
||||||
StartEventContent::MSasV1(c) => c,
|
|
||||||
};
|
|
||||||
|
|
||||||
assert_eq!(content.from_device, "AliceDevice1");
|
assert_eq!(content.from_device, "AliceDevice1");
|
||||||
assert_eq!(content.hashes, &[HashAlgorithm::Sha256]);
|
assert_eq!(content.hashes, &[HashAlgorithm::Sha256]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user