From 2096d0c6819ce0e8f6c6e77e36ebc495924dad63 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 7 Feb 2026 10:45:11 -0500 Subject: Rename data to child --- src/collection.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/collection.rs') diff --git a/src/collection.rs b/src/collection.rs index 9c04fbb..c97bbd2 100755 --- a/src/collection.rs +++ b/src/collection.rs @@ -29,8 +29,7 @@ pub(crate) mod utils; // collection exist #[derive(Debug)] pub struct OwnedLockCollection { - // TODO: rename to child - data: L, + child: L, } /// Locks a reference to a collection of locks, by sorting them by memory @@ -59,7 +58,7 @@ pub struct OwnedLockCollection { // This type caches the sorting order of the locks and the fact that it doesn't // contain any duplicates. pub struct RefLockCollection<'a, L> { - data: &'a L, + child: &'a L, locks: Vec<&'a dyn RawLock>, } @@ -85,7 +84,7 @@ pub struct RefLockCollection<'a, L> { // This type caches the sorting order of the locks and the fact that it doesn't // contain any duplicates. pub struct BoxedLockCollection { - data: *const UnsafeCell, + child: *const UnsafeCell, locks: Vec<&'static dyn RawLock>, } @@ -112,7 +111,7 @@ pub struct BoxedLockCollection { // This type caches the fact that there are no duplicates #[derive(Debug)] pub struct RetryingLockCollection { - data: L, + child: L, } /// A RAII guard for a generic [`Lockable`] type. When this structure is -- cgit v1.2.3