Skip to content

Commit 597db61

Browse files
committed
Remove explicit lifetime
clippy emits: error: the following explicit lifetimes could be elided: 'a As suggested, remove the explicit lifetime.
1 parent 3623281 commit 597db61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ mod prelude {
764764
impl<T> Mutex<T> {
765765
pub fn new(inner: T) -> Mutex<T> { Mutex { inner: RefCell::new(inner) } }
766766

767-
pub fn lock<'a>(&'a self) -> LockResult<MutexGuard<'a, T>> {
767+
pub fn lock(&self) -> LockResult<MutexGuard<'_, T>> {
768768
Ok(MutexGuard { lock: self.inner.borrow_mut() })
769769
}
770770
}

0 commit comments

Comments
 (0)