From b0dada7613570046f2ee550b35b8ef0983ede752 Mon Sep 17 00:00:00 2001 From: Prabhpreet Dua <615318+prabhpreet@users.noreply.github.com> Date: Tue, 5 Dec 2023 06:00:11 +0530 Subject: [PATCH] cargo fmt run --- rosenpass/src/config.rs | 4 ++-- rosenpass/src/msgs.rs | 2 +- rosenpass/src/protocol.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rosenpass/src/config.rs b/rosenpass/src/config.rs index 2260b4aa..75ec9417 100644 --- a/rosenpass/src/config.rs +++ b/rosenpass/src/config.rs @@ -369,9 +369,9 @@ impl Default for Verbosity { #[cfg(test)] mod test { - use std::net::IpAddr; - use serial_test::parallel; use super::*; + use serial_test::parallel; + use std::net::IpAddr; fn split_str(s: &str) -> Vec { s.split(" ").map(|s| s.to_string()).collect() diff --git a/rosenpass/src/msgs.rs b/rosenpass/src/msgs.rs index c19e8da7..344e7a61 100644 --- a/rosenpass/src/msgs.rs +++ b/rosenpass/src/msgs.rs @@ -190,8 +190,8 @@ pub const BISCUIT_CT_LEN: usize = BISCUIT_PT_LEN + xaead::NONCE_LEN + xaead::TAG #[cfg(test)] mod test_constants { use crate::msgs::{BISCUIT_CT_LEN, BISCUIT_PT_LEN}; - use serial_test::parallel; use rosenpass_ciphers::{xaead, KEY_LEN}; + use serial_test::parallel; #[test] #[parallel] diff --git a/rosenpass/src/protocol.rs b/rosenpass/src/protocol.rs index 9b528d54..cd4ca9d6 100644 --- a/rosenpass/src/protocol.rs +++ b/rosenpass/src/protocol.rs @@ -2041,13 +2041,13 @@ impl CryptoServer { #[cfg(test)] mod test { + use serial_test::{parallel, serial}; use std::{net::SocketAddrV4, thread::sleep, time::Duration}; - use serial_test::{serial, parallel}; use super::*; #[test] - #[parallel] + #[parallel] /// Ensure that the protocol implementation can deal with truncated /// messages and with overlong messages. ///