From d47f1831a74c35178b5651e1b613dadbf1279004 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 2 May 2020 22:52:07 +0200 Subject: [PATCH] Remove pointless match --- src/to_device.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/to_device.rs b/src/to_device.rs index 343a9b11..3ca1c58b 100644 --- a/src/to_device.rs +++ b/src/to_device.rs @@ -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]);