[board] Clean up Display and Debug implementations on BitBoard, Flags, Position, and PlacedPiece
This commit is contained in:
parent
2269df2ed9
commit
c413db0bf1
4 changed files with 16 additions and 29 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue