From a5a841dea698bd7b61a9ee04bebb3c4a83ab6f71 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sun, 7 Apr 2024 05:40:23 -0700 Subject: [PATCH 1/1] Appease clippy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 865fcb8..8c94be1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,7 +82,7 @@ fn tally_votes(dir: &Path) -> std::io::Result>> } fn valid_id_char(c: u8) -> bool { - (b'A'..=b'Z').contains(&c) || (b'a'..=b'z').contains(&c) || (b'0'..=b'9').contains(&c) + c.is_ascii_alphanumeric() } fn make_random_id() -> [u8; COOKIE_LENGTH] { -- 2.44.1