From 05378e4554931cf47306569bdea9aa61314f8097 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Wed, 23 Oct 2024 08:51:13 -0700 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 6fd6b3fe1..170df6897 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,6 +19,9 @@ // implementation does not consider the mutable fields, so it is still // correct. #![allow(clippy::mutable_key_type)] +// It's sometimes more readable to explicitly create a vec than to use +// the Default trait. +#![allow(clippy::manual_unwrap_or_default)] // .to_owned() is more explicit on string references. #![warn(clippy::str_to_string)] // .to_string() on a String is clearer as .clone().