From bfa5e808517a546348137d5bc6a23710a8e1803d Mon Sep 17 00:00:00 2001 From: Emerentius Date: Sat, 2 Dec 2023 19:37:04 +0100 Subject: [PATCH] silence clippy false positive --- src/board/sudoku.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/board/sudoku.rs b/src/board/sudoku.rs index 8241b4b..e1933a6 100644 --- a/src/board/sudoku.rs +++ b/src/board/sudoku.rs @@ -817,6 +817,11 @@ impl From for SudokuArray { #[derive(Copy, Clone, PartialOrd, Ord, PartialEq, Eq)] pub struct SudokuLine(SudokuArray); +// False positive. This lint has been changed in newer versions to only block +// derived hash with manual partialeq. It's the opposite here. +// Required for Rust 1.56. +#[allow(renamed_and_removed_lints)] +#[allow(clippy::derive_hash_xor_eq)] impl std::hash::Hash for SudokuLine { fn hash(&self, state: &mut H) where