diff options
| author | Botahamec <botahamec@outlook.com> | 2025-01-05 18:23:59 -0500 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2025-01-05 18:23:59 -0500 |
| commit | 5817ce3b69448b3698a575fa8883ecee8a2367e1 (patch) | |
| tree | 1563d96babd68f78c2ef12586673d22ca6b980e8 /src | |
| parent | 51dd003f176f649cee297f35d11fc01236cf9120 (diff) | |
Remove silly lifetime from Mutex::try_lock
Diffstat (limited to 'src')
| -rw-r--r-- | src/mutex/mutex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mutex/mutex.rs b/src/mutex/mutex.rs index 9b71ea4..7a3f75c 100644 --- a/src/mutex/mutex.rs +++ b/src/mutex/mutex.rs @@ -278,7 +278,7 @@ impl<T: ?Sized, R: RawMutex> Mutex<T, R> { /// let key = ThreadKey::get().unwrap(); /// assert_eq!(*mutex.lock(key), 10); /// ``` - pub fn try_lock<'s, 'a: 's, 'k: 'a, Key: Keyable>( + pub fn try_lock<'s, 'k: 's, Key: Keyable>( &'s self, key: Key, ) -> Result<MutexGuard<'s, 'k, T, Key, R>, Key> { |
