summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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