From 48dfc241e1a135cdd49daea30f140ccaa6020003 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 19 Dec 2023 08:12:22 -0500 Subject: [PATCH] lib: `#![allow(clippy::needless_borrow)]` In my experience this is far and away the clippy lint that is: - Most common to trigger (especially when refactoring code) - The least valuable to fix; there's no performance or correctness concerns really Signed-off-by: Colin Walters --- lib/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 3e8cd9d9a..fafdd991e 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -12,6 +12,10 @@ #![cfg_attr(feature = "dox", feature(doc_cfg))] #![deny(clippy::dbg_macro)] #![deny(clippy::todo)] +// These two are in my experience the lints which are most likely +// to trigger, and among the least valuable to fix. +#![allow(clippy::needless_borrow)] +#![allow(clippy::needless_borrows_for_generic_args)] pub mod cli; pub(crate) mod deploy;