Skip to content

Commit 4c05652

Browse files
committed
Fix Clippy errors rust-ndarray#642
Add comment on axis as remainder.
1 parent db8ec89 commit 4c05652

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dimension/axis.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ impl Axis {
2929

3030
copy_and_clone! {Axis}
3131

32+
// Hash and PartialEq must be explicitly implemented or both default-generated.
33+
// ref: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
3234
impl Hash for Axis {
3335
fn hash<H: Hasher>(&self, state: &mut H) {
3436
self.0.hash(state);

0 commit comments

Comments
 (0)