diff --git a/src/search/search_master.rs b/src/search/search_master.rs index 5557542..3dd2926 100644 --- a/src/search/search_master.rs +++ b/src/search/search_master.rs @@ -62,7 +62,6 @@ impl SearchMaster { } pub fn run_loop(&mut self, rx: Receiver) { - let mut board = Board::new(); for cmd in rx { @@ -97,7 +96,10 @@ impl SearchMaster { self.tt = TT::new(mb_size); println!("info string set Hash to {}MB", self.tt.mb_size()); } else { - println!("Error parsing Hash value. Size remains at {}MB", self.tt.mb_size()); + println!( + "Error parsing Hash value. Size remains at {}MB", + self.tt.mb_size() + ); } } "Threads" => { @@ -105,9 +107,11 @@ impl SearchMaster { self.num_threads = num_threads; println!("info string set Threads to {}", self.num_threads); } else { - println!("Error parsing Threads value. Number remains at {}.", self.num_threads); + println!( + "Error parsing Threads value. Number remains at {}.", + self.num_threads + ); } - } _ => {} }, diff --git a/src/types/board.rs b/src/types/board.rs index 1b3942b..5569c0e 100644 --- a/src/types/board.rs +++ b/src/types/board.rs @@ -1224,7 +1224,9 @@ impl Board { let mut parts = fen.split_ascii_whitespace(); if parts.clone().count() < 3 { - return Err("Fen must at include at least piece placement, color, and castling string."); + return Err( + "Fen must at include at least piece placement, color, and castling string.", + ); } let pieces_placement = parts.next().unwrap();