Skip to content

Commit 9353242

Browse files
Lifetime annotation elision
1 parent 4cb5ccc commit 9353242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutex/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl<T> NeoMutex<T> {
3030
/// Unlock it by dropping the returned object.
3131
///
3232
/// Panics if the mutex is already locked.
33-
pub fn lock<'a>(&'a self) -> NeoMutexGuard<'a, T> {
33+
pub fn lock(&self) -> NeoMutexGuard<T> {
3434
let _ = self
3535
.locked
3636
.compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed)

0 commit comments

Comments
 (0)