diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 664e393..d3744dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 5e13f8a..5ae511f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index 78a44d9..18d7d28 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,3 @@ -#![allow(clippy::missing_errors_doc)] -#![allow(clippy::missing_panics_doc)] - use { miette::{Diagnostic, Result, SourceOffset, SourceSpan}, std::string::FromUtf8Error,