Skip to content

Commit

Permalink
Moved lints to Cargo.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Nov 28, 2023
1 parent f2f9417 commit 5cd34f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,12 @@ rayon = "1.8.0"

[features]
fatal-warnings = []

[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
correctness = "deny"

match-bool = "allow"
needless-for-each = "allow"
similar-names = "allow"
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
*/

#![cfg_attr(feature = "fatal-warnings", deny(warnings))]
#![deny(clippy::correctness)]
#![warn(clippy::pedantic)]
#![allow(clippy::needless_for_each)]
#![allow(clippy::match_bool)]
#![allow(clippy::similar_names)]

//! Shrug is a small program where you can have a library of named strings. You can then search for
//! those strings to have them readily available in your clipboard.
Expand Down

0 comments on commit 5cd34f5

Please sign in to comment.