diff --git a/flags/src/lib.rs b/flags/src/lib.rs index 899facd4..55172b21 100644 --- a/flags/src/lib.rs +++ b/flags/src/lib.rs @@ -1,8 +1,6 @@ //! This crate is an implementation detail of the `cxx` and `cxx-build` crates, //! and does not expose any public API. -#![allow(clippy::let_and_return)] - mod r#impl; #[doc(hidden)] diff --git a/gen/build/src/lib.rs b/gen/build/src/lib.rs index 3f52e48e..c27f7ce9 100644 --- a/gen/build/src/lib.rs +++ b/gen/build/src/lib.rs @@ -50,28 +50,20 @@ #![allow( clippy::cast_sign_loss, clippy::default_trait_access, - clippy::derive_partial_eq_without_eq, clippy::doc_markdown, clippy::enum_glob_use, clippy::explicit_auto_deref, - clippy::if_same_then_else, clippy::inherent_to_string, - clippy::into_iter_without_iter, clippy::items_after_statements, clippy::match_bool, clippy::match_on_vec_items, clippy::match_same_arms, - clippy::module_name_repetitions, clippy::needless_doctest_main, clippy::needless_lifetimes, clippy::needless_pass_by_value, - clippy::new_without_default, clippy::nonminimal_bool, - clippy::or_fun_call, clippy::redundant_else, clippy::ref_option, - clippy::shadow_unrelated, - clippy::significant_drop_in_scrutinee, clippy::similar_names, clippy::single_match_else, clippy::struct_excessive_bools, @@ -79,9 +71,8 @@ clippy::too_many_arguments, clippy::too_many_lines, clippy::toplevel_ref_arg, - clippy::unconditional_recursion, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/12133 clippy::uninlined_format_args, - clippy::upper_case_acronyms, + clippy::upper_case_acronyms )] mod cargo; diff --git a/gen/cmd/src/main.rs b/gen/cmd/src/main.rs index e1d019d5..41a76edc 100644 --- a/gen/cmd/src/main.rs +++ b/gen/cmd/src/main.rs @@ -1,28 +1,19 @@ #![cfg_attr(not(check_cfg), allow(unexpected_cfgs))] #![allow( clippy::cast_sign_loss, - clippy::cognitive_complexity, clippy::default_trait_access, - clippy::derive_partial_eq_without_eq, clippy::enum_glob_use, - clippy::if_same_then_else, clippy::inherent_to_string, - clippy::into_iter_without_iter, clippy::items_after_statements, - clippy::large_enum_variant, clippy::map_clone, clippy::match_bool, clippy::match_on_vec_items, clippy::match_same_arms, - clippy::module_name_repetitions, clippy::needless_lifetimes, clippy::needless_pass_by_value, - clippy::new_without_default, clippy::nonminimal_bool, - clippy::or_fun_call, clippy::redundant_else, clippy::ref_option, - clippy::shadow_unrelated, clippy::similar_names, clippy::single_match_else, clippy::struct_excessive_bools, diff --git a/gen/lib/src/lib.rs b/gen/lib/src/lib.rs index 05c8ce72..f37eb431 100644 --- a/gen/lib/src/lib.rs +++ b/gen/lib/src/lib.rs @@ -14,26 +14,19 @@ #![allow( clippy::cast_sign_loss, clippy::default_trait_access, - clippy::derive_partial_eq_without_eq, clippy::enum_glob_use, - clippy::if_same_then_else, clippy::inherent_to_string, - clippy::into_iter_without_iter, clippy::items_after_statements, clippy::match_bool, clippy::match_on_vec_items, clippy::match_same_arms, clippy::missing_errors_doc, - clippy::module_name_repetitions, clippy::must_use_candidate, clippy::needless_lifetimes, clippy::needless_pass_by_value, - clippy::new_without_default, clippy::nonminimal_bool, - clippy::or_fun_call, clippy::redundant_else, clippy::ref_option, - clippy::shadow_unrelated, clippy::similar_names, clippy::single_match_else, clippy::struct_excessive_bools, diff --git a/macro/src/lib.rs b/macro/src/lib.rs index e65cc098..633c8e21 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -1,34 +1,22 @@ #![allow( clippy::cast_sign_loss, - clippy::default_trait_access, - clippy::derive_partial_eq_without_eq, clippy::doc_markdown, clippy::enum_glob_use, - clippy::if_same_then_else, clippy::inherent_to_string, - clippy::into_iter_without_iter, clippy::items_after_statements, - clippy::large_enum_variant, clippy::match_bool, clippy::match_same_arms, - clippy::module_name_repetitions, clippy::needless_lifetimes, clippy::needless_pass_by_value, - clippy::new_without_default, clippy::nonminimal_bool, - clippy::or_fun_call, clippy::redundant_else, clippy::ref_option, - clippy::shadow_unrelated, - clippy::similar_names, - clippy::single_match, clippy::single_match_else, clippy::struct_field_names, clippy::too_many_arguments, clippy::too_many_lines, clippy::toplevel_ref_arg, - clippy::uninlined_format_args, - clippy::useless_let_if_seq + clippy::uninlined_format_args )] mod derive; diff --git a/src/lib.rs b/src/lib.rs index 7791e37c..8557a304 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -380,32 +380,18 @@ #![allow(non_camel_case_types)] #![allow( clippy::cast_possible_truncation, - clippy::cognitive_complexity, - clippy::declare_interior_mutable_const, clippy::doc_markdown, - clippy::duplicated_attributes, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/12537 - clippy::empty_enum, - clippy::extra_unused_type_parameters, - clippy::inherent_to_string, clippy::items_after_statements, - clippy::large_enum_variant, clippy::len_without_is_empty, clippy::missing_errors_doc, clippy::missing_safety_doc, - clippy::module_inception, - clippy::module_name_repetitions, clippy::must_use_candidate, clippy::needless_doctest_main, clippy::needless_lifetimes, clippy::new_without_default, - clippy::or_fun_call, - clippy::ptr_arg, clippy::ptr_as_ptr, clippy::ptr_cast_constness, - clippy::toplevel_ref_arg, - clippy::transmute_undefined_repr, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/8417 - clippy::uninlined_format_args, - clippy::useless_let_if_seq, + clippy::uninlined_format_args )] #[cfg(built_with_cargo)] diff --git a/tests/cxx_gen.rs b/tests/cxx_gen.rs index e91675d9..f17f8872 100644 --- a/tests/cxx_gen.rs +++ b/tests/cxx_gen.rs @@ -1,5 +1,3 @@ -#![allow(clippy::field_reassign_with_default)] - use cxx_gen::{generate_header_and_cc, Opt}; use std::str; diff --git a/tests/cxx_string.rs b/tests/cxx_string.rs index 8da0c8b7..878be942 100644 --- a/tests/cxx_string.rs +++ b/tests/cxx_string.rs @@ -1,5 +1,4 @@ #![allow( - clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/12257 clippy::items_after_statements, clippy::uninlined_format_args, clippy::unused_async diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs index cc5f7be3..9e060d3e 100644 --- a/tests/ffi/lib.rs +++ b/tests/ffi/lib.rs @@ -1,15 +1,10 @@ #![allow( clippy::boxed_local, - clippy::derive_partial_eq_without_eq, - clippy::just_underscores_and_digits, clippy::missing_errors_doc, clippy::missing_safety_doc, clippy::must_use_candidate, clippy::needless_lifetimes, - clippy::needless_pass_by_ref_mut, clippy::needless_pass_by_value, - clippy::ptr_arg, - clippy::trivially_copy_pass_by_ref, clippy::unnecessary_literal_bound, clippy::unnecessary_wraps, clippy::unused_self diff --git a/tests/test.rs b/tests/test.rs index df061049..3fe4ea5f 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1,14 +1,11 @@ #![allow( clippy::assertions_on_constants, - clippy::assertions_on_result_states, clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::float_cmp, - clippy::needless_pass_by_ref_mut, clippy::needless_pass_by_value, clippy::ptr_cast_constness, - clippy::unit_cmp, - clippy::unseparated_literal_suffix + clippy::unit_cmp )] use cxx::{SharedPtr, UniquePtr};