fix: remove panics on cxx hot path
This commit is contained in:
parent
72eb60f322
commit
953b5f451a
5 changed files with 51 additions and 48 deletions
|
|
@ -159,6 +159,9 @@ impl InternalIterator for TrictracAvailableMovesIterator<'_> {
|
|||
where
|
||||
F: FnMut(Self::Item) -> ControlFlow<R>,
|
||||
{
|
||||
get_valid_actions(&self.board.0).into_iter().try_for_each(f)
|
||||
get_valid_actions(&self.board.0)
|
||||
.unwrap()
|
||||
.into_iter()
|
||||
.try_for_each(f)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue