[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.
This commit is contained in:
Eryn Wells 2024-01-06 20:51:23 -08:00
parent b62cd1fcd2
commit 8cc7e64ba6

View file

@ -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,