Remove pointless match

This commit is contained in:
Jonas Platte 2020-05-02 22:52:07 +02:00
parent 17faaaa56e
commit d47f1831a7
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -494,9 +494,7 @@ mod tests {
let event = deserialize! {source, AnyToDeviceEvent::KeyVerificationStart};
let content = match &event.content {
StartEventContent::MSasV1(c) => c,
};
let StartEventContent::MSasV1(content) = event.content;
assert_eq!(content.from_device, "AliceDevice1");
assert_eq!(content.hashes, &[HashAlgorithm::Sha256]);