[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:
Eryn Wells 2023-12-26 09:16:55 -07:00
parent 48f393680c
commit e23c20486e
2 changed files with 2 additions and 4 deletions

View file

@ -1,8 +1,5 @@
// Eryn Wells <eryn@erynwells.me>
use super::BitBoard;
use crate::square::Square;
pub(crate) struct BitScanner {
bits: u64,
shift: u32,

View file

@ -96,12 +96,13 @@ impl fmt::Display for Position {
#[cfg(test)]
mod tests {
use super::*;
use crate::piece::Shape;
#[test]
fn place_piece_at() {
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");
position