diff options
| author | Botahamec <botahamec@outlook.com> | 2024-05-21 13:18:10 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2024-05-21 13:18:10 -0400 |
| commit | 6e3aa5182604b30ef75ba5676e9f677cc1d18fe3 (patch) | |
| tree | d8e23a82c8151c4b49c15f49707d96651764db39 /src/collection/guard.rs | |
| parent | 875d5c4ad6e0c2a78c15476584fc686121b340d3 (diff) | |
| parent | c344021797b7e1f8027bd9d1302908f0767e362b (diff) | |
Merge remote-tracking branch 'origin/0.2' into 0.2
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 } |
