Fix unused import

This commit is contained in:
Jonas Platte 2020-07-22 22:46:27 +02:00
parent 9190bff1d0
commit 09f711b1c3
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -306,7 +306,6 @@ impl AsRef<str> for CustomRoomVersion {
mod tests {
use std::convert::TryFrom;
use matches::assert_matches;
#[cfg(feature = "serde")]
use serde_json::{from_str, to_string};
@ -387,6 +386,8 @@ mod tests {
#[cfg(feature = "serde")]
#[test]
fn deserialize_official_room_id() {
use matches::assert_matches;
let deserialized =
from_str::<RoomVersionId>(r#""1""#).expect("Failed to convert RoomVersionId to JSON.");