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/write_guard.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rwlock/write_guard.rs') diff --git a/src/rwlock/write_guard.rs b/src/rwlock/write_guard.rs index c22ebe1..aec3d3d 100644 --- a/src/rwlock/write_guard.rs +++ b/src/rwlock/write_guard.rs @@ -10,6 +10,9 @@ use crate::lockable::RawLock; use super::{RwLock, RwLockWriteGuard, RwLockWriteRef}; +// These impls make things slightly easier because now you can use +// `println!("{guard}")` instead of `println!("{}", *guard)` + impl PartialEq for RwLockWriteRef<'_, T, R> { fn eq(&self, other: &Self) -> bool { self.deref().eq(&**other) -- cgit v1.2.3