no_std
This commit is contained in:
parent
c0e915f1b4
commit
00261d95c1
9 changed files with 102 additions and 96 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue