From 30b37b3d0b8f5889addcf83d264daf131bed142a Mon Sep 17 00:00:00 2001 From: yellowhatter Date: Wed, 11 Sep 2024 13:58:56 +0300 Subject: [PATCH] code format fix --- zenoh/src/api/bytes.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zenoh/src/api/bytes.rs b/zenoh/src/api/bytes.rs index 3e00f0af61..d7ef8b6383 100644 --- a/zenoh/src/api/bytes.rs +++ b/zenoh/src/api/bytes.rs @@ -3259,10 +3259,9 @@ mod tests { #[test] fn serializer() { - #[cfg(feature = "shared-memory")] - use crate::zenoh_core::Wait; - use rand::Rng; use std::borrow::Cow; + + use rand::Rng; use zenoh_buffers::{ZBuf, ZSlice}; use zenoh_protocol::core::Parameters; #[cfg(feature = "shared-memory")] @@ -3276,6 +3275,8 @@ mod tests { use super::ZBytes; use crate::bytes::{Deserialize, Serialize, ZSerde}; + #[cfg(feature = "shared-memory")] + use crate::zenoh_core::Wait; const NUM: usize = 1_000;