From 6a54884b292987fc1371bf062c42e964b6a4b0fe Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 9 Mar 2024 16:53:12 -0500 Subject: Pointer checks --- src/rwlock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rwlock.rs') 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 { value: UnsafeCell, } -pub struct ReadLock<'a, T: ?Sized, R>(&'a RwLock); +pub struct ReadLock<'a, T: ?Sized, R>(pub(crate) &'a RwLock); -pub struct WriteLock<'a, T: ?Sized, R>(&'a RwLock); +pub struct WriteLock<'a, T: ?Sized, R>(pub(crate) &'a RwLock); pub struct RwLockReadRef<'a, T: ?Sized, R: RawRwLock>(&'a RwLock); -- cgit v1.2.3