summaryrefslogtreecommitdiff
path: root/src/collection/guard.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2025-03-12 22:19:38 -0400
committerMica White <botahamec@outlook.com>2025-03-12 22:19:38 -0400
commitf347b3e7ca771f11a21d2f6e54c0d97796174d37 (patch)
tree6776aa84a0fb91f5619f9669f083e0316f0526b9 /src/collection/guard.rs
parent58abf5872023aca7ee6459fa3b2e067d57923ba5 (diff)
Add unwind handling for scoped locks
Diffstat (limited to 'src/collection/guard.rs')
-rw-r--r--src/collection/guard.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/collection/guard.rs b/src/collection/guard.rs
index 78d9895..ab66ffe 100644
--- a/src/collection/guard.rs
+++ b/src/collection/guard.rs
@@ -12,6 +12,11 @@ impl<Guard: Hash> Hash for LockGuard<Guard> {
}
}
+// No implementations of Eq, PartialEq, PartialOrd, or Ord
+// You can't implement both PartialEq<Self> and PartialEq<T>
+// It's easier to just implement neither and ask users to dereference
+// This is less of a problem when using the scoped lock API
+
#[mutants::skip]
#[cfg(not(tarpaulin_include))]
impl<Guard: Debug> Debug for LockGuard<Guard> {