From f1e6abfb321c8a635427f6ae14aa23f274ae914f Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Wed, 24 Jul 2024 12:18:53 -0400 Subject: [PATCH] build: move needless_borrow lint allows to be global A new instance of this snuck in under xtask, this will make sure it's covered everywhere going forward. Signed-off-by: John Eckersberg --- Cargo.toml | 4 ++++ lib/src/lib.rs | 4 ---- tests-integration/src/tests-integration.rs | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 16bc920b..f2c63fd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,3 +58,7 @@ unused_must_use = "forbid" # These should only be in local code dbg_macro = "deny" todo = "deny" +# These two are in my experience the lints which are most likely +# to trigger, and among the least valuable to fix. +needless_borrow = "allow" +needless_borrows_for_generic_args = "allow" diff --git a/lib/src/lib.rs b/lib/src/lib.rs index dbb214cd..7479f2a5 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -8,10 +8,6 @@ #![deny(missing_docs)] #![deny(missing_debug_implementations)] #![cfg_attr(feature = "dox", feature(doc_cfg))] -// 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)] mod boundimage; pub mod cli; diff --git a/tests-integration/src/tests-integration.rs b/tests-integration/src/tests-integration.rs index dd43d835..4e44b96e 100644 --- a/tests-integration/src/tests-integration.rs +++ b/tests-integration/src/tests-integration.rs @@ -1,6 +1,3 @@ -#![allow(clippy::needless_borrow)] -#![allow(clippy::needless_borrows_for_generic_args)] - use std::path::PathBuf; use camino::Utf8PathBuf;