sync: remove unnecessary imports (#1043)

This commit is contained in:
Carl Lerche 2019-04-09 12:26:11 -07:00 committed by GitHub
parent 2c4549a18a
commit 9144b2ff53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -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))

View File

@ -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))