[core,board] Update all use imports referring to Square, Rank, and File
This commit is contained in:
parent
3c3a62345d
commit
106800bcb3
16 changed files with 40 additions and 40 deletions
|
@ -3,8 +3,9 @@
|
|||
use crate::{
|
||||
piece::{Piece, PlacedPiece},
|
||||
r#move::Castle,
|
||||
Color, File, Position, Rank, Square,
|
||||
Color, Position,
|
||||
};
|
||||
use chess_core::{File, Rank, Square};
|
||||
use std::fmt::Write;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
|
@ -42,7 +43,7 @@ impl ToFen for Position {
|
|||
write!(fen_string, "{}", empty_squares).map_err(|err| FenError::FmtError(err))?;
|
||||
empty_squares = 0;
|
||||
}
|
||||
if rank != &Rank::One {
|
||||
if rank != &Rank::ONE {
|
||||
write!(fen_string, "/").map_err(|err| FenError::FmtError(err))?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue