Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjay committed Aug 3, 2020
1 parent 9b12423 commit ea543ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tokio/src/sync/mutex.rs
Expand Up @@ -246,7 +246,7 @@ impl<T: ?Sized> Mutex<T> {
MutexGuard {
s: &self.s,
data: self.c.get(),
marker: marker::PhantomData,
_marker: marker::PhantomData,
}
}

Expand Down Expand Up @@ -311,7 +311,7 @@ impl<T: ?Sized> Mutex<T> {
Ok(_) => Ok(MutexGuard {
s: &self.s,
data: self.c.get(),
marker: marker::PhantomData,
_marker: marker::PhantomData,
}),
Err(_) => Err(TryLockError(())),
}
Expand Down Expand Up @@ -434,7 +434,7 @@ impl<'a, T: ?Sized> MutexGuard<'a, T> {
MutexGuard {
s,
data,
marker: marker::PhantomData,
_marker: marker::PhantomData,
}
}

Expand Down Expand Up @@ -487,7 +487,7 @@ impl<'a, T: ?Sized> MutexGuard<'a, T> {
Ok(MutexGuard {
s,
data,
marker: marker::PhantomData,
_marker: marker::PhantomData,
})
}
}
Expand Down

0 comments on commit ea543ae

Please sign in to comment.