diff --git a/Cargo.toml b/Cargo.toml index cdf3aaf..ca14f2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,8 +23,17 @@ async-telegram-trait = ["async-trait"] [lints.rust] unsafe_code = "forbid" [lints.clippy] -pedantic = "warn" -derive_partial_eq_without_eq = "warn" +pedantic = { level = "warn", priority = -1 } +nursery = { level = "warn", priority = -1 } +struct_excessive_bools = "allow" # due to Telegram API + +# TODO: remove and fix (or allow explicitly on the specific problem) +missing_errors_doc = "allow" +must_use_candidate = "allow" +option_if_let_else = "allow" +significant_drop_tightening = "allow" +single_match_else = "allow" +unreadable_literal = "allow" [[example]] name = "get_me" diff --git a/src/lib.rs b/src/lib.rs index c7ca95f..3912f55 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,18 +1,3 @@ -// TODO: remove and fix (or allow explicitly on the specific problem) -#![allow( - clippy::missing_errors_doc, - clippy::must_use_candidate, - clippy::single_match_else, - clippy::struct_excessive_bools, - clippy::unreadable_literal, - - // from clippy::nursery - // clippy::derive_partial_eq_without_eq, - // clippy::option_if_let_else, - // clippy::significant_drop_tightening, - // clippy::use_self, -)] - #[cfg(any(feature = "http-client", feature = "async-http-client"))] pub mod api;