Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
sunjay and hawkw committed Aug 3, 2020
1 parent 4126d03 commit 9b12423
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tokio/src/sync/mutex.rs
Expand Up @@ -2,9 +2,7 @@ use crate::sync::batch_semaphore as semaphore;

use std::cell::UnsafeCell;
use std::error::Error;
use std::fmt;
use std::marker;
use std::mem;
use std::{fmt, marker, mem};
use std::ops::{Deref, DerefMut};
use std::sync::Arc;

Expand Down Expand Up @@ -135,7 +133,7 @@ pub struct MutexGuard<'a, T: ?Sized> {
s: &'a semaphore::Semaphore,
data: *mut T,
// Needed to tell the borrow checker that we are holding a `&mut T`
marker: marker::PhantomData<&'a mut T>,
_marker: marker::PhantomData<&'a mut T>,
}

/// An owned handle to a held `Mutex`.
Expand Down

0 comments on commit 9b12423

Please sign in to comment.