From ff0f467e25c2aabe27385349e5a027b391e21a70 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Jan 2021 16:10:31 -0800 Subject: [PATCH] Opt in to pedantic clippy lints in serde_derive_internals --- serde_derive_internals/lib.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/serde_derive_internals/lib.rs b/serde_derive_internals/lib.rs index 4f44f1e86..443697040 100644 --- a/serde_derive_internals/lib.rs +++ b/serde_derive_internals/lib.rs @@ -1,6 +1,7 @@ #![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.25.0")] #![allow(unknown_lints, bare_trait_objects)] -#![deny(clippy::all)] +#![deny(clippy::all, clippy::pedantic)] +// Ignored clippy lints #![allow( clippy::cognitive_complexity, clippy::redundant_field_names, @@ -11,6 +12,18 @@ // clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704 clippy::unnested_or_patterns, )] +// Ignored clippy_pedantic lints +#![allow( + clippy::doc_markdown, + clippy::enum_glob_use, + clippy::items_after_statements, + clippy::match_same_arms, + clippy::missing_errors_doc, + clippy::must_use_candidate, + clippy::struct_excessive_bools, + clippy::too_many_lines, + clippy::wildcard_imports +)] #[macro_use] extern crate syn;