From dc16634f4abdb1e830d2749e64b419740702b302 Mon Sep 17 00:00:00 2001 From: Mica White Date: Thu, 26 Dec 2024 11:26:39 -0500 Subject: Commenting --- src/rwlock/read_guard.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rwlock/read_guard.rs') diff --git a/src/rwlock/read_guard.rs b/src/rwlock/read_guard.rs index 44b737e..8678a8e 100644 --- a/src/rwlock/read_guard.rs +++ b/src/rwlock/read_guard.rs @@ -10,6 +10,9 @@ use crate::lockable::RawLock; use super::{RwLock, RwLockReadGuard, RwLockReadRef}; +// These impls make things slightly easier because now you can use +// `println!("{guard}")` instead of `println!("{}", *guard)` + impl PartialEq for RwLockReadRef<'_, T, R> { fn eq(&self, other: &Self) -> bool { self.deref().eq(&**other) -- cgit v1.2.3