[position] Make Shape::to_ascii() const
This commit is contained in:
parent
a65fcd6000
commit
d20119dfe3
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue