diff --git a/zenoh/src/lib.rs b/zenoh/src/lib.rs index c4f671ec79..60dab218db 100644 --- a/zenoh/src/lib.rs +++ b/zenoh/src/lib.rs @@ -364,6 +364,7 @@ pub mod internal { #[cfg(all(feature = "unstable", feature = "shared-memory"))] pub mod shm { pub use zenoh_shm::api::client_storage::SharedMemoryClientStorage; + pub use zenoh_shm::api::provider::shared_memory_provider::{BlockOn, GarbageCollect}; pub use zenoh_shm::api::slice::zsliceshm::{zsliceshm, ZSliceShm}; pub use zenoh_shm::api::slice::zsliceshmmut::{zsliceshmmut, ZSliceShmMut}; pub use zenoh_shm::api::{ @@ -373,7 +374,4 @@ pub mod shm { }, provider::shared_memory_provider::SharedMemoryProviderBuilder, }; - pub use zenoh_shm::api::provider::shared_memory_provider::{ - BlockOn, GarbageCollect, - }; } diff --git a/zenoh/tests/shm.rs b/zenoh/tests/shm.rs index 92d1b17732..a7bc481e27 100644 --- a/zenoh/tests/shm.rs +++ b/zenoh/tests/shm.rs @@ -16,8 +16,8 @@ mod tests { use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use std::time::Duration; - use zenoh::prelude::r#async::*; use zenoh::internal::ztimeout; + use zenoh::prelude::r#async::*; const TIMEOUT: Duration = Duration::from_secs(60); const SLEEP: Duration = Duration::from_secs(1);