Skip to content

Commit f1e6abf

Browse files
committed
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 <[email protected]>
1 parent bc28c59 commit f1e6abf

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ unused_must_use = "forbid"
5858
# These should only be in local code
5959
dbg_macro = "deny"
6060
todo = "deny"
61+
# These two are in my experience the lints which are most likely
62+
# to trigger, and among the least valuable to fix.
63+
needless_borrow = "allow"
64+
needless_borrows_for_generic_args = "allow"

lib/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
#![deny(missing_docs)]
99
#![deny(missing_debug_implementations)]
1010
#![cfg_attr(feature = "dox", feature(doc_cfg))]
11-
// These two are in my experience the lints which are most likely
12-
// to trigger, and among the least valuable to fix.
13-
#![allow(clippy::needless_borrow)]
14-
#![allow(clippy::needless_borrows_for_generic_args)]
1511

1612
mod boundimage;
1713
pub mod cli;

tests-integration/src/tests-integration.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![allow(clippy::needless_borrow)]
2-
#![allow(clippy::needless_borrows_for_generic_args)]
3-
41
use std::path::PathBuf;
52

63
use camino::Utf8PathBuf;

0 commit comments

Comments
 (0)