Skip to content

Commit

Permalink
chore: put Clippy configuration in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Nov 29, 2023
1 parent 1df26a1 commit 18db2f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,4 @@ jobs:
rustup install --profile default nightly
rustup default nightly
- uses: Swatinem/rust-cache@v2
- run: cargo clippy -- -D clippy::pedantic
- run: cargo clippy --all-targets -- -D warnings
- run: cargo clippy --all-targets
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ regex = "1.10.2"
trybuild = "1.0.85"
version_check = "0.9.4"

[lints.clippy]
pedantic = "deny"
module_name_repetitions = "allow"

[[bench]]
name = "algos"
harness = false
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#![forbid(missing_docs)]
#![warn(clippy::pedantic)]
#![allow(clippy::non_ascii_literal)]
#![allow(clippy::module_name_repetitions)]
#![doc = include_str!("../README.md")]

use deprecate_until::deprecate_until;
Expand Down

0 comments on commit 18db2f0

Please sign in to comment.