silence warnings

This commit is contained in:
Dominic 2023-12-07 16:32:29 +01:00
parent 3c4e784d97
commit 8f6aa7fcc7
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -1,4 +1,4 @@
#![allow(clippy::no_effect)]
#![allow(clippy::let_and_return, clippy::no_effect)]
#![forbid(elided_lifetimes_in_paths, unsafe_code)]
use aoc23::read;
@ -14,6 +14,7 @@ macro_rules! cards {
enum Card { $($ident),+ }
impl Card {
#[allow(dead_code)]
fn all_cards() -> [Self; 0 $(+ { $char; 1 })+] {
[$(Self::$ident),+]
}