remove num crate
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use super::Board;
|
||||
use allocative::Allocative;
|
||||
use num::Integer;
|
||||
use static_assertions::const_assert;
|
||||
|
||||
/// PERF! having `Coord` be of type `u8` (instead of usize) increases
|
||||
@@ -22,8 +21,8 @@ impl CoordPair {
|
||||
}
|
||||
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn into_indexes(&self) -> (CoordAxis, CoordAxis) {
|
||||
self.0.div_mod_floor(&Board::SIZE)
|
||||
pub const fn into_indexes(&self) -> (CoordAxis, CoordAxis) {
|
||||
(self.0 / Board::SIZE, self.0 % Board::SIZE)
|
||||
}
|
||||
|
||||
pub const fn area(pos: CoordAxis) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user