diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 15710d8d9..59929e0ba 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -144,6 +144,7 @@ clippy::too_many_lines, // preference clippy::doc_markdown, + clippy::needless_lifetimes, clippy::unseparated_literal_suffix, // false positive clippy::needless_doctest_main, diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index bedd1cb3d..1e415fb20 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -27,6 +27,7 @@ // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797 clippy::manual_map, clippy::match_like_matches_macro, + clippy::needless_lifetimes, clippy::needless_pass_by_value, clippy::too_many_arguments, clippy::trivially_copy_pass_by_ref, diff --git a/serde_derive_internals/lib.rs b/serde_derive_internals/lib.rs index 6edb07ee0..c907b5a24 100644 --- a/serde_derive_internals/lib.rs +++ b/serde_derive_internals/lib.rs @@ -9,6 +9,7 @@ // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797 clippy::manual_map, clippy::missing_panics_doc, + clippy::needless_lifetimes, clippy::redundant_field_names, clippy::result_unit_err, clippy::should_implement_trait, diff --git a/test_suite/tests/test_serde_path.rs b/test_suite/tests/test_serde_path.rs index 127b557ec..1a54e12e3 100644 --- a/test_suite/tests/test_serde_path.rs +++ b/test_suite/tests/test_serde_path.rs @@ -1,5 +1,6 @@ #![allow( clippy::extra_unused_type_parameters, + clippy::needless_lifetimes, clippy::type_repetition_in_bounds )]