diff --git a/tokio-sync/src/mpsc/list.rs b/tokio-sync/src/mpsc/list.rs index d7441c9a3..782ab12a8 100644 --- a/tokio-sync/src/mpsc/list.rs +++ b/tokio-sync/src/mpsc/list.rs @@ -215,8 +215,6 @@ impl Tx { impl fmt::Debug for Tx { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - use std::sync::atomic::Ordering::Relaxed; - fmt.debug_struct("Tx") .field("block_tail", &self.block_tail.load(Relaxed)) .field("tail_position", &self.tail_position.load(Relaxed)) diff --git a/tokio-sync/src/semaphore.rs b/tokio-sync/src/semaphore.rs index 8beaa9a6c..865264f8b 100644 --- a/tokio-sync/src/semaphore.rs +++ b/tokio-sync/src/semaphore.rs @@ -532,8 +532,6 @@ impl Semaphore { impl fmt::Debug for Semaphore { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - use std::sync::atomic::Ordering::Relaxed; - fmt.debug_struct("Semaphore") .field("state", &SemState::load(&self.state, Relaxed)) .field("head", &self.head.with(|ptr| ptr))