From 330754e6f85e4276d80c2b2360d4760745b2bc7a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 2 Oct 2021 21:16:08 +0200 Subject: [PATCH] events: Get rid of unnecessary Raw usage in a test --- crates/ruma-events/tests/room_message.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ruma-events/tests/room_message.rs b/crates/ruma-events/tests/room_message.rs index e6c185a2..54376175 100644 --- a/crates/ruma-events/tests/room_message.rs +++ b/crates/ruma-events/tests/room_message.rs @@ -18,7 +18,6 @@ use ruma_events::{ #[cfg(feature = "unstable-pre-spec")] use ruma_identifiers::DeviceIdBox; use ruma_identifiers::{event_id, mxc_uri, room_id, user_id}; -use ruma_serde::Raw; use serde_json::{from_value as from_json_value, json, to_value as to_json_value}; macro_rules! json_object { @@ -389,5 +388,5 @@ fn content_deserialization_failure() { "body": "test","msgtype": "m.location", "url": "http://example.com/audio.mp3" }); - assert!(from_json_value::>(json_data).unwrap().deserialize().is_err()); + assert!(from_json_value::(json_data).is_err()); }