cargo clippy
This commit is contained in:
@@ -44,7 +44,7 @@ impl fmt::Display for Board {
|
||||
)?;
|
||||
|
||||
// Print game over screen
|
||||
if self.game_over() == true {
|
||||
if self.game_over() {
|
||||
match self.get_winner() {
|
||||
Some(Piece::Black) => writeln!(f, "Black Wins"),
|
||||
Some(Piece::White) => writeln!(f, "White Wins"),
|
||||
@@ -225,11 +225,7 @@ impl Board {
|
||||
let max_score = BOARD_SIZE * BOARD_SIZE;
|
||||
let combined_score = black_score + white_score;
|
||||
|
||||
if max_score == combined_score {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
max_score == combined_score
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user