Skip to content

Commit

Permalink
Move clippy config into Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Nov 12, 2024
1 parent 877d452 commit f22a621
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
hooks:
- id: fmt
- id: clippy
args: ["--all", "--all-features", "--", "-D", "clippy::pedantic"]
args: ["--all", "--all-features"]
- id: cargo-check
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
Expand Down
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ opt-level = "z"
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"

[lints.clippy]
pedantic = { level = "deny", priority = -1 }
missing_errors_doc = "allow"
missing_panics_doc = "allow"
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(clippy::missing_errors_doc)]
#![allow(clippy::missing_panics_doc)]

use {
miette::{Diagnostic, Result, SourceOffset, SourceSpan},
std::string::FromUtf8Error,
Expand Down

0 comments on commit f22a621

Please sign in to comment.