Skip to content

Commit 2106cbc

Browse files
committed
Enable check that Hash and PartialEq impls aren't different
This is a crude check, just seeing if Hash is derived and PartialEq is not, but it's at least something.
1 parent c34854f commit 2106cbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
#![cfg_attr(not(any(feature = "use_std", feature = "rustc-dep-of-std")), no_std)]
159159
// Enable lints
160160
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
161+
#![cfg_attr(feature = "extra_traits", deny(clippy::derive_hash_xor_eq))]
161162
#![deny(missing_copy_implementations)]
162163

163164
#[cfg(all(not(cross_platform_docs), feature = "use_std"))]

0 commit comments

Comments
 (0)