From 8cc7e64ba60a476f1f55c5d830f824a0563b3733 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 6 Jan 2024 20:51:23 -0800 Subject: [PATCH] [board] Fix a handful of linter warnings by allowing them The linter also requires non-compliant formatting of the constants produced in the coordinate_enum macro to be marked as allowed. --- board/src/square.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/board/src/square.rs b/board/src/square.rs index 586abd3..7a0d6d8 100644 --- a/board/src/square.rs +++ b/board/src/square.rs @@ -51,6 +51,7 @@ macro_rules! coordinate_enum { const $variant: usize = $name::$variant as usize; )* + #[allow(non_upper_case_globals)] match index { $($variant => Some($name::$variant),)* _ => None,