Skip to content

Commit

Permalink
silence clippy false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Emerentius committed Dec 2, 2023
1 parent 7f9034d commit bfa5e80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/board/sudoku.rs
Expand Up @@ -817,6 +817,11 @@ impl From<Sudoku> 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<H>(&self, state: &mut H)
where
Expand Down

0 comments on commit bfa5e80

Please sign in to comment.