mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
sync: remove unnecessary imports (#1043)
This commit is contained in:
parent
2c4549a18a
commit
9144b2ff53
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user