In Square::from_index_unchecked, instead of using TryFrom to convert the index to a square, just index directly into the Square::ALL array. This function is already marked unsafe. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |
In Square::from_index_unchecked, instead of using TryFrom to convert the index to a square, just index directly into the Square::ALL array. This function is already marked unsafe. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |