From 00121bdb4b944005b08cc4ea94557d3d02f92b23 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 2 Feb 2021 11:44:20 +0100 Subject: [PATCH] Fix inconsistent #[test] module naming --- ruma-events/src/key/verification.rs | 2 +- ruma-events/src/room/relationships.rs | 2 +- ruma-identifiers/src/device_key_id.rs | 2 +- ruma-push-gateway-api/src/send_event_notification/v1.rs | 2 +- ruma-serde/src/canonical_json.rs | 2 +- ruma-signatures/src/lib.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruma-events/src/key/verification.rs b/ruma-events/src/key/verification.rs index 3fae7315..28679da0 100644 --- a/ruma-events/src/key/verification.rs +++ b/ruma-events/src/key/verification.rs @@ -124,7 +124,7 @@ pub enum VerificationMethod { } #[cfg(test)] -mod test { +mod tests { use super::{KeyAgreementProtocol, MessageAuthenticationCode}; use serde_json::{from_value as from_json_value, json}; diff --git a/ruma-events/src/room/relationships.rs b/ruma-events/src/room/relationships.rs index 1bd80597..6d228327 100644 --- a/ruma-events/src/room/relationships.rs +++ b/ruma-events/src/room/relationships.rs @@ -84,7 +84,7 @@ pub struct Replacement { } #[cfg(test)] -mod test { +mod tests { use crate::room::message::Relation; use matches::assert_matches; use ruma_identifiers::event_id; diff --git a/ruma-identifiers/src/device_key_id.rs b/ruma-identifiers/src/device_key_id.rs index f2a61c4c..72bfc2b0 100644 --- a/ruma-identifiers/src/device_key_id.rs +++ b/ruma-identifiers/src/device_key_id.rs @@ -57,7 +57,7 @@ where common_impls!(DeviceKeyId, try_from, "Device key ID with algorithm and device ID"); #[cfg(test)] -mod test { +mod tests { use std::convert::TryFrom; #[cfg(feature = "serde")] diff --git a/ruma-push-gateway-api/src/send_event_notification/v1.rs b/ruma-push-gateway-api/src/send_event_notification/v1.rs index aff29348..8bb775f5 100644 --- a/ruma-push-gateway-api/src/send_event_notification/v1.rs +++ b/ruma-push-gateway-api/src/send_event_notification/v1.rs @@ -290,7 +290,7 @@ mod tweak_serde { } #[cfg(test)] -mod test { +mod tests { use std::time::{Duration, SystemTime}; use js_int::uint; diff --git a/ruma-serde/src/canonical_json.rs b/ruma-serde/src/canonical_json.rs index d8eab49b..a4e83d38 100644 --- a/ruma-serde/src/canonical_json.rs +++ b/ruma-serde/src/canonical_json.rs @@ -60,7 +60,7 @@ pub fn to_canonical_value(value: T) -> Result Result<(Algorithm, String), SplitError<'_>> { } #[cfg(test)] -mod test { +mod tests { use std::collections::BTreeMap; use base64::{decode_config, STANDARD_NO_PAD};