aboutsummaryrefslogtreecommitdiff
path: root/src/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync.rs')
-rw-r--r--src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.rs b/src/sync.rs
index e314b7e8..06d6cea4 100644
--- a/src/sync.rs
+++ b/src/sync.rs
@@ -38,7 +38,7 @@ impl<T> FairMutex<T> {
}
/// Lock the mutex
- pub fn lock(&self) -> MutexGuard<T> {
+ pub fn lock(&self) -> MutexGuard<'_, T> {
// Must bind to a temporary or the lock will be freed before going
// into data.lock()
let _next = self.next.lock();