From 4c05652ad0393753f67df843ff04b3bfcd018001 Mon Sep 17 00:00:00 2001 From: Alessandro Cresto Miseroglio Date: Fri, 5 Jul 2019 11:52:34 +0200 Subject: [PATCH] Fix Clippy errors #642 Add comment on axis as remainder. --- src/dimension/axis.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dimension/axis.rs b/src/dimension/axis.rs index e9137cb01..ec4e0e30e 100644 --- a/src/dimension/axis.rs +++ b/src/dimension/axis.rs @@ -29,6 +29,8 @@ impl Axis { copy_and_clone! {Axis} +// Hash and PartialEq must be explicitly implemented or both default-generated. +// ref: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq impl Hash for Axis { fn hash(&self, state: &mut H) { self.0.hash(state);