Skip to content

Commit 9d149a1

Browse files
authored
Merge pull request #722 from jeckersb/xtask_needless_borrows
build: move needless_borrow lint allows to be global
2 parents bc28c59 + f1e6abf commit 9d149a1

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Cargo.toml

+4
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

-4
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

-3
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)