clippy
This commit is contained in:
parent
efd956d614
commit
8445a750c9
@ -101,11 +101,11 @@ impl BitBoard {
|
||||
}
|
||||
|
||||
pub const fn bitor_assign(&mut self, other: Self) {
|
||||
self.0 = self.0 | other.0;
|
||||
self.0 |= other.0;
|
||||
}
|
||||
|
||||
pub const fn bitand_assign(&mut self, other: Self) {
|
||||
self.0 = self.0 & other.0;
|
||||
self.0 &= other.0;
|
||||
}
|
||||
|
||||
pub const fn not(self) -> Self {
|
||||
|
||||
@ -231,7 +231,7 @@ impl Board {
|
||||
}
|
||||
|
||||
let mut self_copy = *self;
|
||||
if let Ok(_) = self_copy.place(coord, piece) {
|
||||
if self_copy.place(coord, piece).is_ok() {
|
||||
Some(self_copy)
|
||||
} else {
|
||||
None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user