[board] Remove the PlacedPiece import from fen.rs
This commit is contained in:
		
							parent
							
								
									cd3efa61c9
								
							
						
					
					
						commit
						c7be0e3e2b
					
				
					 1 changed files with 1 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue