Skip to content

Commit

Permalink
Fix Clippy errors rust-ndarray#642
Browse files Browse the repository at this point in the history
Add comment on axis as remainder.
  • Loading branch information
alex179ohm committed Jul 5, 2019
1 parent db8ec89 commit 4c05652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dimension/axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<H: Hasher>(&self, state: &mut H) {
self.0.hash(state);
Expand Down

0 comments on commit 4c05652

Please # to comment.