mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
sync: remove unnecessary imports (#1043)
This commit is contained in:
@@ -215,8 +215,6 @@ impl<T> Tx<T> {
|
||||
|
||||
impl<T> fmt::Debug for Tx<T> {
|
||||
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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user