From 558bfa3fb3789d7d2586fef11d62367c174f370f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 10 Jan 2023 06:29:58 +0000 Subject: [PATCH] Move `debug_sync` to the new `sync` folder --- lightning/src/lib.rs | 2 -- lightning/src/{ => sync}/debug_sync.rs | 0 lightning/src/sync/mod.rs | 5 ++++- 3 files changed, 4 insertions(+), 3 deletions(-) rename lightning/src/{ => sync}/debug_sync.rs (100%) diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 1ec4d6aa5..d4289d07d 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -175,8 +175,6 @@ mod prelude { pub use alloc::string::ToString; } -#[cfg(all(not(feature = "_bench_unstable"), feature = "std", test))] -mod debug_sync; #[cfg(all(not(feature = "_bench_unstable"), feature = "backtrace", feature = "std", test))] extern crate backtrace; diff --git a/lightning/src/debug_sync.rs b/lightning/src/sync/debug_sync.rs similarity index 100% rename from lightning/src/debug_sync.rs rename to lightning/src/sync/debug_sync.rs diff --git a/lightning/src/sync/mod.rs b/lightning/src/sync/mod.rs index 584338031..f5755fc10 100644 --- a/lightning/src/sync/mod.rs +++ b/lightning/src/sync/mod.rs @@ -1,5 +1,8 @@ #[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))] -pub use crate::debug_sync::*; +mod debug_sync; +#[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))] +pub use debug_sync::*; + #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))] pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard}; #[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))] -- 2.39.5