From d20119dfe3eb97081e754901def144eb9a806d73 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 1 Mar 2024 15:24:43 -0800 Subject: [PATCH] [position] Make Shape::to_ascii() const --- core/src/pieces.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/pieces.rs b/core/src/pieces.rs index 148f05f..51ae727 100644 --- a/core/src/pieces.rs +++ b/core/src/pieces.rs @@ -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',