[board] Remove the PlacedPiece import from fen.rs

This commit is contained in:
Eryn Wells 2025-05-19 08:35:56 -07:00
parent cd3efa61c9
commit c7be0e3e2b

View file

@ -1,9 +1,7 @@
// Eryn Wells <eryn@erynwells.me>
use crate::{piece_sets::PlacePieceStrategy, Board, Castle};
use chessfriend_core::{
coordinates::ParseSquareError, piece, Color, File, Piece, PlacedPiece, Rank, Square,
};
use chessfriend_core::{coordinates::ParseSquareError, piece, Color, File, Piece, Rank, Square};
use std::fmt::Write;
use thiserror::Error;
@ -181,14 +179,6 @@ impl ToFenStr for Piece {
}
}
impl ToFenStr for PlacedPiece {
type Error = ToFenStrError;
fn to_fen_str(&self) -> Result<String, Self::Error> {
self.piece().to_fen_str()
}
}
impl FromFenStr for Board {
type Error = FromFenStrError;