diff options
Diffstat (limited to 'src/collection/guard.rs')
| -rw-r--r-- | src/collection/guard.rs | 5 |
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> { |
