clippy
This commit is contained in:
parent
0d837ca054
commit
f6312a9fef
@ -308,7 +308,7 @@ impl FutureMoves {
|
||||
current = n.parent;
|
||||
}
|
||||
|
||||
let mut board = self.arena[root].board.clone();
|
||||
let mut board = self.arena[root].board;
|
||||
for (m, c) in hist.into_iter().rev() {
|
||||
if let Some(m) = m {
|
||||
let _ = board.place(m, c);
|
||||
@ -837,8 +837,7 @@ mod tests {
|
||||
assert!(
|
||||
board
|
||||
.possible_moves(futm.agent_color)
|
||||
.find(|x| Some(x) == best_move.as_ref())
|
||||
.is_some(),
|
||||
.any(|x| Some(&x) == best_move.as_ref()),
|
||||
"futm played an invalid move"
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user