diff options
| author | Mica White <botahamec@outlook.com> | 2024-03-16 12:41:27 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2024-03-16 12:41:27 -0400 |
| commit | 801a870467af4059d2abdc67f2899edebb1f6d6c (patch) | |
| tree | 4658040ec1ac93b5f8fd4d2796d8702a8ed2f3e0 /src/collection/guard.rs | |
| parent | ad76d43dc28b8802d64eb7ddcd9e02d3d12ac89a (diff) | |
retry lock collection
Diffstat (limited to 'src/collection/guard.rs')
| -rw-r--r-- | src/collection/guard.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/collection/guard.rs b/src/collection/guard.rs index 3b98d29..e3ffb21 100644 --- a/src/collection/guard.rs +++ b/src/collection/guard.rs @@ -4,15 +4,15 @@ use crate::{key::Keyable, Lockable}; use super::LockGuard; -impl<'a, 'key: 'a, L: Lockable<'a>, Key: Keyable> Deref for LockGuard<'a, 'key, L, Key> { - type Target = L::Guard; +impl<'a, 'key: 'a, L: Lockable + 'a, Key: Keyable> Deref for LockGuard<'a, 'key, L, Key> { + type Target = L::Guard<'a>; fn deref(&self) -> &Self::Target { &self.guard } } -impl<'a, 'key: 'a, L: Lockable<'a>, Key: Keyable> DerefMut for LockGuard<'a, 'key, L, Key> { +impl<'a, 'key: 'a, L: Lockable + 'a, Key: Keyable> DerefMut for LockGuard<'a, 'key, L, Key> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.guard } |
