Skip to content

Commit

Permalink
build: move needless_borrow lint allows to be global
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jeckersb committed Jul 24, 2024
1 parent bc28c59 commit f1e6abf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 0 additions & 4 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions tests-integration/src/tests-integration.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(clippy::needless_borrow)]
#![allow(clippy::needless_borrows_for_generic_args)]

use std::path::PathBuf;

use camino::Utf8PathBuf;
Expand Down

0 comments on commit f1e6abf

Please sign in to comment.