From 43274db8ca2fd12e6a4b3d2f7bab857e947e1ec8 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 11 Oct 2025 23:08:14 +0100 Subject: [PATCH] Silence a clippy lint --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index d0f259ab5..dc3fc6160 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,6 +27,9 @@ #![allow(clippy::manual_unwrap_or_default)] // I find the explicit arithmetic clearer sometimes. #![allow(clippy::implicit_saturating_sub)] +// It's helpful being super explicit about byte length versus Unicode +// character point length sometimes. +#![allow(clippy::needless_as_bytes)] // .to_owned() is more explicit on string references. #![warn(clippy::str_to_string)] // .to_string() on a String is clearer as .clone().