Skip to content

Commit

Permalink
derive some missing Hash implementations (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocodutra authored and niklasf committed Mar 8, 2021
1 parent dbf97a2 commit ad95e32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl fmt::Display for Board {
}

/// A parsed FEN.
#[derive(Clone, Eq, PartialEq, Debug)]
#[derive(Clone, Eq, PartialEq, Hash, Debug)]
pub struct Fen {
pub board: Board,
pub pockets: Option<Material>,
Expand Down
2 changes: 1 addition & 1 deletion src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use crate::setup::{Castles, EpSquare, Setup, SwapTurn};
use crate::movelist::MoveList;

/// Outcome of a game.
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub enum Outcome {
Decisive { winner: Color },
Draw,
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl Piece {
}

/// Information about a move.
#[derive(Clone, Eq, PartialEq, Debug)]
#[derive(Clone, Eq, PartialEq, Hash, Debug)]
#[repr(align(4))]
pub enum Move {
Normal {
Expand Down

0 comments on commit ad95e32

Please sign in to comment.