diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index 9bf2c364..1773b7a3 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -24,6 +24,7 @@ // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575 clippy::collapsible_match, clippy::enum_variant_names, + clippy::if_then_panic, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797 clippy::manual_map, clippy::match_like_matches_macro, diff --git a/serde_derive_internals/lib.rs b/serde_derive_internals/lib.rs index aa00e3b1..fa51c365 100644 --- a/serde_derive_internals/lib.rs +++ b/serde_derive_internals/lib.rs @@ -6,6 +6,7 @@ clippy::cognitive_complexity, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575 clippy::collapsible_match, + clippy::if_then_panic, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797 clippy::manual_map, clippy::missing_panics_doc, diff --git a/serde_test/src/lib.rs b/serde_test/src/lib.rs index a443026f..34e2fdd0 100644 --- a/serde_test/src/lib.rs +++ b/serde_test/src/lib.rs @@ -155,6 +155,7 @@ allow( cloned_instead_of_copied, empty_line_after_outer_attr, + if_then_panic, missing_docs_in_private_items, missing_panics_doc, module_name_repetitions, diff --git a/test_suite/tests/test_de.rs b/test_suite/tests/test_de.rs index e1a6ea21..15b5d388 100644 --- a/test_suite/tests/test_de.rs +++ b/test_suite/tests/test_de.rs @@ -1,4 +1,8 @@ -#![allow(clippy::decimal_literal_representation, clippy::unreadable_literal)] +#![allow( + clippy::decimal_literal_representation, + clippy::if_then_panic, + clippy::unreadable_literal +)] #![cfg_attr(feature = "unstable", feature(never_type))] use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};