Skip to content

Commit

Permalink
build(cargo): enable nursery lints and move allowed lints to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Aug 17, 2024
1 parent 9d8c53d commit 6d78e15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
13 changes: 11 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
15 changes: 0 additions & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 6d78e15

Please sign in to comment.