events: Get rid of unnecessary Raw usage in a test

This commit is contained in:
Jonas Platte 2021-10-02 21:16:08 +02:00
parent cb78a7f341
commit 330754e6f8
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -18,7 +18,6 @@ use ruma_events::{
#[cfg(feature = "unstable-pre-spec")] #[cfg(feature = "unstable-pre-spec")]
use ruma_identifiers::DeviceIdBox; use ruma_identifiers::DeviceIdBox;
use ruma_identifiers::{event_id, mxc_uri, room_id, user_id}; 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}; use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
macro_rules! json_object { macro_rules! json_object {
@ -389,5 +388,5 @@ fn content_deserialization_failure() {
"body": "test","msgtype": "m.location", "body": "test","msgtype": "m.location",
"url": "http://example.com/audio.mp3" "url": "http://example.com/audio.mp3"
}); });
assert!(from_json_value::<Raw<MessageEventContent>>(json_data).unwrap().deserialize().is_err()); assert!(from_json_value::<MessageEventContent>(json_data).is_err());
} }