[position] Make Shape::to_ascii() const

This commit is contained in:
Eryn Wells 2024-03-01 15:24:43 -08:00
parent a65fcd6000
commit d20119dfe3

View file

@ -34,7 +34,7 @@ impl Shape {
PROMOTABLE_SHAPES.iter()
}
fn to_ascii(&self) -> char {
const fn to_ascii(&self) -> char {
match self {
Shape::Pawn => 'P',
Shape::Knight => 'N',