diff options
| author | Mica White <botahamec@outlook.com> | 2026-08-27 12:20:53 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-08-27 12:20:53 -0400 |
| commit | 08dabfe4c7e5cf2726dbfafeb000cb1c1dde83c4 (patch) | |
| tree | cfe9c0f25ac70a75620fde19eb2c6ab86cc2cfac /src/collection/owned.rs | |
| parent | 0a6bd8f2c0a7c79d17f5dc9e64af0b4c6c745166 (diff) | |
Fix build
Diffstat (limited to 'src/collection/owned.rs')
| -rwxr-xr-x | src/collection/owned.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/collection/owned.rs b/src/collection/owned.rs index 483bc09..ab45e86 100755 --- a/src/collection/owned.rs +++ b/src/collection/owned.rs @@ -379,7 +379,8 @@ impl<L: OwnedLockable> OwnedLockCollection<L> { /// ``` #[must_use] pub const fn context(&self) -> LockContext<'_, L> { - LockContext::new(&self.child) + // safety: we lock in a specific order and don't allow outside access + unsafe { LockContext::new(&self.child) } } /// Unlocks the underlying lockable data type, returning the key that's |
