Skip to content

Commit

Permalink
build(clippy): enable pedantic lints from code
Browse files Browse the repository at this point in the history
When this is forgotten locally only the CI will notice this.
Now these lints are always performed with clippy.

Also cleanup the list of allowed lints and add future ones from
the nursery which could also already be implemented.
  • Loading branch information
EdJoPaTo committed Nov 27, 2023
1 parent cef6e04 commit 762da2d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#![forbid(unsafe_code)]
#![warn(clippy::pedantic)]
// TODO: remove and fix (or allow explicitly on the specific problem)
#![allow(
clippy::large_enum_variant,
clippy::missing_const_for_fn,
clippy::missing_errors_doc,
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::needless_collect,
clippy::new_without_default,
clippy::non_ascii_literal,
clippy::single_match_else,
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::unreadable_literal,
clippy::use_self,
clippy::wildcard_imports
// 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"))]
Expand Down

0 comments on commit 762da2d

Please sign in to comment.