summaryrefslogtreecommitdiff
path: root/src/rwlock.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-09 16:53:12 -0500
committerMica White <botahamec@outlook.com>2024-03-09 16:53:12 -0500
commit6a54884b292987fc1371bf062c42e964b6a4b0fe (patch)
tree7b4c20c4150522b0d6d8e3f5db8fbe17eb80abc5 /src/rwlock.rs
parent8ea16a606bfcc1ba535f6cef3cb4c162f91d2eb0 (diff)
Pointer checks
Diffstat (limited to 'src/rwlock.rs')
-rw-r--r--src/rwlock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rwlock.rs b/src/rwlock.rs
index 16ad3c3..722ca2f 100644
--- a/src/rwlock.rs
+++ b/src/rwlock.rs
@@ -17,9 +17,9 @@ pub struct RwLock<T: ?Sized, R> {
value: UnsafeCell<T>,
}
-pub struct ReadLock<'a, T: ?Sized, R>(&'a RwLock<T, R>);
+pub struct ReadLock<'a, T: ?Sized, R>(pub(crate) &'a RwLock<T, R>);
-pub struct WriteLock<'a, T: ?Sized, R>(&'a RwLock<T, R>);
+pub struct WriteLock<'a, T: ?Sized, R>(pub(crate) &'a RwLock<T, R>);
pub struct RwLockReadRef<'a, T: ?Sized, R: RawRwLock>(&'a RwLock<T, R>);