From a104d0ae903f54aeb063708ba376bb2e27774e25 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Wed, 2 Jul 2025 10:03:26 +0100 Subject: [PATCH] Silence a clippy warning --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1fca0725f..ae7271847 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,6 +22,8 @@ // It's sometimes more readable to explicitly create a vec than to use // the Default trait. #![allow(clippy::manual_unwrap_or_default)] +// I find the explicit arithmetic clearer sometimes. +#![allow(clippy::implicit_saturating_sub)] // .to_owned() is more explicit on string references. #![warn(clippy::str_to_string)] // .to_string() on a String is clearer as .clone().