Suppress all currently triggered clippy pedantic lints

This commit is contained in:
David Tolnay 2020-12-29 15:06:36 -08:00
parent 831b02fc6b
commit 05aa672b1e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
8 changed files with 94 additions and 2 deletions

View File

@ -46,13 +46,33 @@
//! ```
#![allow(
clippy::cast_sign_loss,
clippy::default_trait_access,
clippy::doc_markdown,
clippy::drop_copy,
clippy::enum_glob_use,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::let_underscore_drop,
clippy::map_flatten,
clippy::match_bool,
clippy::match_on_vec_items,
clippy::match_same_arms,
clippy::module_name_repetitions,
clippy::needless_doctest_main,
clippy::needless_pass_by_value,
clippy::new_without_default,
clippy::nonminimal_bool,
clippy::option_if_let_else,
clippy::or_fun_call,
clippy::redundant_closure_for_method_calls,
clippy::redundant_else,
clippy::shadow_unrelated,
clippy::similar_names,
clippy::single_match_else,
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg
)]

View File

@ -1,11 +1,27 @@
#![allow(
clippy::cast_sign_loss,
clippy::cognitive_complexity,
clippy::default_trait_access,
clippy::enum_glob_use,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::large_enum_variant,
clippy::match_bool,
clippy::match_on_vec_items,
clippy::match_same_arms,
clippy::module_name_repetitions,
clippy::needless_pass_by_value,
clippy::new_without_default,
clippy::nonminimal_bool,
clippy::option_if_let_else,
clippy::or_fun_call,
clippy::redundant_else,
clippy::shadow_unrelated,
clippy::similar_names,
clippy::single_match_else,
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg
)]

View File

@ -9,11 +9,28 @@
#![allow(dead_code)]
#![allow(
clippy::cast_sign_loss,
clippy::default_trait_access,
clippy::enum_glob_use,
clippy::inherent_to_string,
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::needless_pass_by_value,
clippy::new_without_default,
clippy::nonminimal_bool,
clippy::option_if_let_else,
clippy::or_fun_call,
clippy::redundant_else,
clippy::shadow_unrelated,
clippy::similar_names,
clippy::single_match_else,
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg
)]

View File

@ -1,11 +1,27 @@
#![allow(
clippy::cast_sign_loss,
clippy::default_trait_access,
clippy::doc_markdown,
clippy::enum_glob_use,
clippy::filter_map,
clippy::inherent_to_string,
clippy::items_after_statements,
clippy::large_enum_variant,
clippy::match_bool,
clippy::match_same_arms,
clippy::module_name_repetitions,
clippy::needless_pass_by_value,
clippy::new_without_default,
clippy::nonminimal_bool,
clippy::option_if_let_else,
clippy::or_fun_call,
clippy::redundant_else,
clippy::shadow_unrelated,
clippy::similar_names,
clippy::single_match,
clippy::single_match_else,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg,
clippy::useless_let_if_seq
)]

View File

@ -369,11 +369,17 @@
#![allow(
clippy::cognitive_complexity,
clippy::declare_interior_mutable_const,
clippy::doc_markdown,
clippy::empty_enum,
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::new_without_default,
clippy::or_fun_call,

View File

@ -1,9 +1,15 @@
#![allow(
clippy::boxed_local,
clippy::cast_possible_truncation,
clippy::just_underscores_and_digits,
clippy::let_underscore_drop,
clippy::must_use_candidate,
clippy::needless_pass_by_value,
clippy::ptr_arg,
clippy::trivially_copy_pass_by_ref,
clippy::unnecessary_wraps
clippy::unnecessary_wraps,
clippy::unused_self,
clippy::used_underscore_binding
)]
pub mod cast;

View File

@ -1,4 +1,13 @@
#![allow(clippy::assertions_on_constants, clippy::float_cmp, clippy::unit_cmp)]
#![allow(
clippy::assertions_on_constants,
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::float_cmp,
clippy::needless_pass_by_value,
clippy::redundant_closure_for_method_calls,
clippy::unit_cmp,
clippy::unseparated_literal_suffix
)]
use cxx::SharedPtr;
use cxx_test_suite::module::ffi2;

View File

@ -1,3 +1,5 @@
#![allow(clippy::let_underscore_drop)]
use cxx::{CxxString, UniquePtr};
#[test]