From: Jason Ish Date: Tue, 4 Oct 2022 14:16:04 +0000 (-0600) Subject: rust: sort clippy allow statements X-Git-Tag: suricata-7.0.0-beta1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8c00dd98077dea53b2c26667e8be1e1f636a9e1;p=thirdparty%2Fsuricata.git rust: sort clippy allow statements --- diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 3a65448e52..25e3c8a4fc 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -19,59 +19,57 @@ // Clippy lints we want to suppress due to style, or simply too noisy // and not a priority right now. +#![allow(clippy::assertions_on_constants)] +#![allow(clippy::assign_op_pattern)] +#![allow(clippy::char_lit_as_u8)] +#![allow(clippy::len_without_is_empty)] +#![allow(clippy::len_zero)] +#![allow(clippy::let_and_return)] +#![allow(clippy::manual_range_contains)] #![allow(clippy::missing_safety_doc)] +#![allow(clippy::needless_bool)] #![allow(clippy::needless_return)] #![allow(clippy::redundant_field_names)] -#![allow(clippy::len_zero)] #![allow(clippy::too_many_arguments)] -#![allow(clippy::assign_op_pattern)] -#![allow(clippy::manual_range_contains)] #![allow(clippy::vec_init_then_push)] -#![allow(clippy::assertions_on_constants)] -#![allow(clippy::let_and_return)] -#![allow(clippy::needless_bool)] -#![allow(clippy::char_lit_as_u8)] -#![allow(clippy::len_without_is_empty)] // Would be good to fix, but needs more investigation with respect to // using as a library. #![allow(clippy::crate_in_macro_def)] // To be fixed, but remove the noise for now. -#![allow(clippy::collapsible_if)] -#![allow(clippy::collapsible_else_if)] -#![allow(clippy::unnecessary_cast)] -#![allow(clippy::redundant_static_lifetimes)] +#![allow(clippy::bool_assert_comparison)] #![allow(clippy::bool_comparison)] +#![allow(clippy::branches_sharing_code)] +#![allow(clippy::collapsible_else_if)] +#![allow(clippy::collapsible_if)] +#![allow(clippy::derive_partial_eq_without_eq)] +#![allow(clippy::explicit_counter_loop)] +#![allow(clippy::extra_unused_lifetimes)] +#![allow(clippy::field_reassign_with_default)] #![allow(clippy::for_loops_over_fallibles)] -#![allow(clippy::needless_lifetimes)] -#![allow(clippy::single_match)] -#![allow(clippy::upper_case_acronyms)] -#![allow(clippy::ptr_arg)] -#![allow(clippy::new_without_default)] -#![allow(clippy::needless_lifetimes)] -#![allow(clippy::match_ref_pats)] -#![allow(clippy::module_inception)] -#![allow(clippy::needless_range_loop)] #![allow(clippy::if_same_then_else)] +#![allow(clippy::large_enum_variant)] +#![allow(clippy::manual_find)] +#![allow(clippy::map_flatten)] #![allow(clippy::match_like_matches_macro)] -#![allow(clippy::extra_unused_lifetimes)] +#![allow(clippy::match_ref_pats)] #![allow(clippy::mixed_case_hex_literals)] -#![allow(clippy::type_complexity)] -#![allow(clippy::nonminimal_bool)] +#![allow(clippy::module_inception)] +#![allow(clippy::needless_lifetimes)] +#![allow(clippy::needless_range_loop)] #![allow(clippy::never_loop)] -#![allow(clippy::large_enum_variant)] -#![allow(clippy::for_loops_over_fallibles)] -#![allow(clippy::explicit_counter_loop)] -#![allow(clippy::branches_sharing_code)] -#![allow(clippy::while_let_loop)] +#![allow(clippy::new_without_default)] +#![allow(clippy::nonminimal_bool)] +#![allow(clippy::ptr_arg)] #![allow(clippy::redundant_pattern_matching)] -#![allow(clippy::field_reassign_with_default)] -#![allow(clippy::bool_assert_comparison)] -#![allow(clippy::derive_partial_eq_without_eq)] -#![allow(clippy::manual_find)] -#![allow(clippy::map_flatten)] +#![allow(clippy::redundant_static_lifetimes)] #![allow(clippy::result_unit_err)] +#![allow(clippy::single_match)] +#![allow(clippy::type_complexity)] +#![allow(clippy::unnecessary_cast)] +#![allow(clippy::upper_case_acronyms)] +#![allow(clippy::while_let_loop)] #[macro_use] extern crate bitflags;