diff --git a/src/atomic_cell.rs b/crossbeam-utils/src/atomic/atomic_cell.rs similarity index 100% rename from src/atomic_cell.rs rename to crossbeam-utils/src/atomic/atomic_cell.rs diff --git a/crossbeam-utils/src/atomic/mod.rs b/crossbeam-utils/src/atomic/mod.rs index 1c47de910..91eae0ed6 100644 --- a/crossbeam-utils/src/atomic/mod.rs +++ b/crossbeam-utils/src/atomic/mod.rs @@ -1,5 +1,7 @@ //! Additional utilities for atomics. +mod atomic_cell; mod consume; +pub use self::atomic_cell::AtomicCell; pub use self::consume::AtomicConsume; diff --git a/src/lib.rs b/src/lib.rs index 9e983a345..c5235c1ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,14 +59,13 @@ mod _epoch { pub use _epoch::crossbeam_epoch as epoch; mod arc_cell; -mod atomic_cell; extern crate crossbeam_utils; /// Additional utilities for atomics. pub mod atomic { pub use arc_cell::ArcCell; - pub use atomic_cell::AtomicCell; + pub use crossbeam_utils::atomic::AtomicCell; pub use crossbeam_utils::atomic::AtomicConsume; }