From: Scott Worley Date: Sun, 7 Apr 2024 12:40:23 +0000 (-0700) Subject: Appease clippy X-Git-Tag: v0.3.0~3 X-Git-Url: http://git.scottworley.com/voter/commitdiff_plain/a5a841dea698bd7b61a9ee04bebb3c4a83ab6f71 Appease clippy --- 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] {