From 43dc24718c442ef45f6cecf5790df0ab84a72cfc Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 23 Feb 2023 13:21:57 +0300 Subject: refactor: apply clippy suggestions --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index bb244ca..e7633bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,9 +43,9 @@ fn computer_move(gm: &mut Grossmeister, time_left: &mut Duration) { // Ponder for some time println!("Pondering, assume opponent move from PV: {:?}", pv[1]); - let ep_target_before = gm.board.ep_target.clone(); - let castling_rights_before = gm.board.castling_rights.clone(); - let hash_before = gm.board.hash.clone(); + let ep_target_before = gm.board.ep_target; + let castling_rights_before = gm.board.castling_rights; + let hash_before = gm.board.hash; let captured_piece = gm.board.make_move(pv[1]); gm.iterative_deepening(max_depth, Duration::from_secs(3), false); gm.board.unmake_move(pv[1], captured_piece, ep_target_before, castling_rights_before, hash_before); -- cgit v1.2.3