Skip to content

Commit c885770

Browse files
committed
ref: rm redundant mut
1 parent 89d8088 commit c885770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/legacy-zebra/src/thordb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ fn opening_scan(moves_played: i32, thor_hash_: &mut ThorHash, tree: &mut ThorOpe
12711271
the number of times each move has been played according to the
12721272
trimmed set of openings from the Thor database.
12731273
*/
1274-
fn recursive_frequency_count(tree: &mut ThorOpeningTree,
1274+
fn recursive_frequency_count(tree: &ThorOpeningTree,
12751275
node: OpeningNodeRef,
12761276
freq_count: &mut [i32],
12771277
depth: i32,
@@ -2114,7 +2114,7 @@ pub fn thor_compare(game1: &GameType, game2: &GameType, sord_order: &[i32], play
21142114
towards common moves. (If no moves are found, PASS is returned.)
21152115
*/
21162116
pub unsafe fn choose_thor_opening_move(in_board: &[i32], side_to_move: i32, echo: i32, random_instance: &mut MyRandom) -> i32 {
2117-
let tree: &mut ThorOpeningTree = &mut thor_opening_tree;
2117+
let tree: &ThorOpeningTree = &thor_opening_tree;
21182118
let mut j: i32 = 0;
21192119
let mut temp_symm: i32 = 0;
21202120
let mut pos: i32 = 0;

0 commit comments

Comments
 (0)