Opt in to pedantic clippy lints in serde_derive_internals

This commit is contained in:
David Tolnay 2021-01-24 16:10:31 -08:00
parent d1975f3661
commit ff0f467e25
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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;