Fix clippy error

This commit is contained in:
Jonas Platte 2020-09-17 22:18:16 +02:00
parent 2112ae00c6
commit 906e50f9a8
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -1,3 +1,5 @@
#![cfg(not(feature = "unstable-pre-spec"))]
use std::{
collections::BTreeMap,
time::{Duration, SystemTime},
@ -11,7 +13,6 @@ use ruma_events::{
use ruma_identifiers::{event_id, room_id, server_key_id, server_name, user_id};
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn serialize_stub_as_v1() {
let mut signatures = BTreeMap::new();
@ -75,7 +76,6 @@ fn serialize_stub_as_v1() {
assert_eq!(to_json_value(&pdu_stub).unwrap(), json);
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn serialize_stub_as_v3() {
let mut signatures = BTreeMap::new();
@ -129,7 +129,6 @@ fn serialize_stub_as_v3() {
assert_eq!(to_json_value(&pdu_stub).unwrap(), json);
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn deserialize_stub_as_v1() {
let json = json!({
@ -187,7 +186,6 @@ fn deserialize_stub_as_v1() {
}
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn deserialize_stub_as_v3() {
let json = json!({
@ -231,7 +229,6 @@ fn deserialize_stub_as_v3() {
}
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn serialize_pdu_as_v1() {
let mut signatures = BTreeMap::new();
@ -299,7 +296,6 @@ fn serialize_pdu_as_v1() {
assert_eq!(to_json_value(&pdu).unwrap(), json);
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn serialize_pdu_as_v3() {
let mut signatures = BTreeMap::new();
@ -355,7 +351,6 @@ fn serialize_pdu_as_v3() {
assert_eq!(to_json_value(&pdu_stub).unwrap(), json);
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn test_deserialize_pdu_as_v1() {
let json = json!({
@ -460,7 +455,6 @@ fn deserialize_pdu_as_v3() {
}
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn convert_v1_stub_to_pdu() {
let mut signatures = BTreeMap::new();
@ -537,7 +531,6 @@ fn convert_v1_stub_to_pdu() {
);
}
#[cfg(not(feature = "unstable-pre-spec"))]
#[test]
fn convert_v3_stub_to_pdu() {
let mut signatures = BTreeMap::new();