]> git.lizzy.rs Git - enumset.git/commitdiff
Fix a clippy warning in EnumSet.
authorAlissa Rao <lymia@lymiahugs.com>
Mon, 5 Jul 2021 21:07:53 +0000 (14:07 -0700)
committerAlissa Rao <lymia@lymiahugs.com>
Mon, 5 Jul 2021 21:07:53 +0000 (14:07 -0700)
enumset/src/lib.rs

index a3f5eab6420baf0951cac4eee6ae1608274794d3..12f37d1ef353cef9cf1a7286cb785363b2900278 100644 (file)
@@ -561,6 +561,7 @@ impl <T: EnumSetType + Debug> Debug for EnumSet<T> {
     }
 }
 
+#[allow(clippy::derive_hash_xor_eq)] // This impl exists to change trait bounds only.
 impl <T: EnumSetType> Hash for EnumSet<T> {
     fn hash<H: Hasher>(&self, state: &mut H) {
         self.__priv_repr.hash(state)