summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-08-27 12:20:53 -0400
committerMica White <botahamec@outlook.com>2026-08-27 12:20:53 -0400
commit08dabfe4c7e5cf2726dbfafeb000cb1c1dde83c4 (patch)
treecfe9c0f25ac70a75620fde19eb2c6ab86cc2cfac /src
parent0a6bd8f2c0a7c79d17f5dc9e64af0b4c6c745166 (diff)
Fix build
Diffstat (limited to 'src')
-rwxr-xr-xsrc/collection/owned.rs3
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