1
0
Fork 0
This commit is contained in:
Paul-Nicolas Madelaine 2025-11-17 22:07:04 +01:00
parent c0e915f1b4
commit 00261d95c1
9 changed files with 102 additions and 96 deletions

View file

@ -7,9 +7,9 @@ use crate::position::*;
use crate::san::*;
use crate::uci::*;
use std::convert::Infallible;
use std::iter::{ExactSizeIterator, FusedIterator};
use std::ops::ControlFlow;
use core::convert::Infallible;
use core::iter::{ExactSizeIterator, FusedIterator};
use core::ops::ControlFlow;
/// A legal move.
#[must_use]
@ -299,7 +299,7 @@ impl<'l> Moves<'l> {
#[inline]
pub fn sort_by<F>(&mut self, mut compare: F)
where
F: FnMut(Move, Move) -> std::cmp::Ordering,
F: FnMut(Move, Move) -> core::cmp::Ordering,
{
self.array.as_slice_mut().sort_unstable_by(|a, b| {
compare(