[board] Build error and warning fixes
- Remove unused import from bit_scanner.rs - Rename PieceShape → Shape in the Position tests
This commit is contained in:
parent
48f393680c
commit
e23c20486e
2 changed files with 2 additions and 4 deletions
|
@ -1,8 +1,5 @@
|
||||||
// Eryn Wells <eryn@erynwells.me>
|
// Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
use super::BitBoard;
|
|
||||||
use crate::square::Square;
|
|
||||||
|
|
||||||
pub(crate) struct BitScanner {
|
pub(crate) struct BitScanner {
|
||||||
bits: u64,
|
bits: u64,
|
||||||
shift: u32,
|
shift: u32,
|
||||||
|
|
|
@ -96,12 +96,13 @@ impl fmt::Display for Position {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use crate::piece::Shape;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn place_piece_at() {
|
fn place_piece_at() {
|
||||||
let mut position = Position::empty();
|
let mut position = Position::empty();
|
||||||
|
|
||||||
let piece = Piece::new(Color::White, PieceShape::Queen);
|
let piece = Piece::new(Color::White, Shape::Queen);
|
||||||
let square = Square::from_algebraic_string("e4").expect("Unable to get e4 square");
|
let square = Square::from_algebraic_string("e4").expect("Unable to get e4 square");
|
||||||
|
|
||||||
position
|
position
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue