From f347b3e7ca771f11a21d2f6e54c0d97796174d37 Mon Sep 17 00:00:00 2001 From: Mica White Date: Wed, 12 Mar 2025 22:19:38 -0400 Subject: Add unwind handling for scoped locks --- src/collection/guard.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/collection/guard.rs') 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 Hash for LockGuard { } } +// No implementations of Eq, PartialEq, PartialOrd, or Ord +// You can't implement both PartialEq and PartialEq +// 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 Debug for LockGuard { -- cgit v1.2.3