[board] Clean up Display and Debug implementations on BitBoard, Flags, Position, and PlacedPiece

This commit is contained in:
Eryn Wells 2024-01-19 17:59:34 -08:00
parent 2269df2ed9
commit c413db0bf1
4 changed files with 16 additions and 29 deletions

View file

@ -145,9 +145,7 @@ impl fmt::Display for BitBoard {
impl fmt::Debug for BitBoard {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
f.debug_tuple("BitBoard")
.field(&format_args!("{:064b}", self.0))
.finish()
write!(f, "BitBoard({:064b})", self.0)
}
}