Skip to content

Commit f66f720

Browse files
committed
Move no-std sync implementations to a folder to clean up
1 parent 197a47a commit f66f720

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lightning/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,4 @@ mod debug_sync;
180180
#[cfg(all(not(feature = "_bench_unstable"), feature = "backtrace", feature = "std", test))]
181181
extern crate backtrace;
182182

183-
#[cfg(feature = "std")]
184-
mod sync {
185-
#[cfg(all(not(feature = "_bench_unstable"), test))]
186-
pub use crate::debug_sync::*;
187-
#[cfg(any(feature = "_bench_unstable", not(test)))]
188-
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
189-
#[cfg(any(feature = "_bench_unstable", not(test)))]
190-
pub use crate::util::fairrwlock::FairRwLock;
191-
}
192-
193-
#[cfg(not(feature = "std"))]
194183
mod sync;

lightning/src/sync/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#[cfg(all(feature = "std", not(feature = "_bench_unstable"), test))]
2+
pub use crate::debug_sync::*;
3+
#[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
4+
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
5+
#[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
6+
pub use crate::util::fairrwlock::FairRwLock;
7+
8+
#[cfg(not(feature = "std"))]
9+
mod nostd_sync;
10+
#[cfg(not(feature = "std"))]
11+
pub use nostd_sync::*;
File renamed without changes.

0 commit comments

Comments
 (0)