Skip to content

Commit

Permalink
Merge pull request #722 from jeckersb/xtask_needless_borrows
Browse files Browse the repository at this point in the history
build: move needless_borrow lint allows to be global
  • Loading branch information
jeckersb authored Jul 24, 2024
2 parents bc28c59 + f1e6abf commit 9d149a1
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 9d149a1

Please sign in to comment.