mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-21 08:31:11 +00:00
Delete clippy suppressions that are no longer triggered
This commit is contained in:
parent
fb824244d0
commit
e247ca0584
@ -1,8 +1,6 @@
|
|||||||
//! This crate is an implementation detail of the `cxx` and `cxx-build` crates,
|
//! This crate is an implementation detail of the `cxx` and `cxx-build` crates,
|
||||||
//! and does not expose any public API.
|
//! and does not expose any public API.
|
||||||
|
|
||||||
#![allow(clippy::let_and_return)]
|
|
||||||
|
|
||||||
mod r#impl;
|
mod r#impl;
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
|
@ -50,28 +50,20 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::cast_sign_loss,
|
clippy::cast_sign_loss,
|
||||||
clippy::default_trait_access,
|
clippy::default_trait_access,
|
||||||
clippy::derive_partial_eq_without_eq,
|
|
||||||
clippy::doc_markdown,
|
clippy::doc_markdown,
|
||||||
clippy::enum_glob_use,
|
clippy::enum_glob_use,
|
||||||
clippy::explicit_auto_deref,
|
clippy::explicit_auto_deref,
|
||||||
clippy::if_same_then_else,
|
|
||||||
clippy::inherent_to_string,
|
clippy::inherent_to_string,
|
||||||
clippy::into_iter_without_iter,
|
|
||||||
clippy::items_after_statements,
|
clippy::items_after_statements,
|
||||||
clippy::match_bool,
|
clippy::match_bool,
|
||||||
clippy::match_on_vec_items,
|
clippy::match_on_vec_items,
|
||||||
clippy::match_same_arms,
|
clippy::match_same_arms,
|
||||||
clippy::module_name_repetitions,
|
|
||||||
clippy::needless_doctest_main,
|
clippy::needless_doctest_main,
|
||||||
clippy::needless_lifetimes,
|
clippy::needless_lifetimes,
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::new_without_default,
|
|
||||||
clippy::nonminimal_bool,
|
clippy::nonminimal_bool,
|
||||||
clippy::or_fun_call,
|
|
||||||
clippy::redundant_else,
|
clippy::redundant_else,
|
||||||
clippy::ref_option,
|
clippy::ref_option,
|
||||||
clippy::shadow_unrelated,
|
|
||||||
clippy::significant_drop_in_scrutinee,
|
|
||||||
clippy::similar_names,
|
clippy::similar_names,
|
||||||
clippy::single_match_else,
|
clippy::single_match_else,
|
||||||
clippy::struct_excessive_bools,
|
clippy::struct_excessive_bools,
|
||||||
@ -79,9 +71,8 @@
|
|||||||
clippy::too_many_arguments,
|
clippy::too_many_arguments,
|
||||||
clippy::too_many_lines,
|
clippy::too_many_lines,
|
||||||
clippy::toplevel_ref_arg,
|
clippy::toplevel_ref_arg,
|
||||||
clippy::unconditional_recursion, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/12133
|
|
||||||
clippy::uninlined_format_args,
|
clippy::uninlined_format_args,
|
||||||
clippy::upper_case_acronyms,
|
clippy::upper_case_acronyms
|
||||||
)]
|
)]
|
||||||
|
|
||||||
mod cargo;
|
mod cargo;
|
||||||
|
@ -1,28 +1,19 @@
|
|||||||
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
|
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::cast_sign_loss,
|
clippy::cast_sign_loss,
|
||||||
clippy::cognitive_complexity,
|
|
||||||
clippy::default_trait_access,
|
clippy::default_trait_access,
|
||||||
clippy::derive_partial_eq_without_eq,
|
|
||||||
clippy::enum_glob_use,
|
clippy::enum_glob_use,
|
||||||
clippy::if_same_then_else,
|
|
||||||
clippy::inherent_to_string,
|
clippy::inherent_to_string,
|
||||||
clippy::into_iter_without_iter,
|
|
||||||
clippy::items_after_statements,
|
clippy::items_after_statements,
|
||||||
clippy::large_enum_variant,
|
|
||||||
clippy::map_clone,
|
clippy::map_clone,
|
||||||
clippy::match_bool,
|
clippy::match_bool,
|
||||||
clippy::match_on_vec_items,
|
clippy::match_on_vec_items,
|
||||||
clippy::match_same_arms,
|
clippy::match_same_arms,
|
||||||
clippy::module_name_repetitions,
|
|
||||||
clippy::needless_lifetimes,
|
clippy::needless_lifetimes,
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::new_without_default,
|
|
||||||
clippy::nonminimal_bool,
|
clippy::nonminimal_bool,
|
||||||
clippy::or_fun_call,
|
|
||||||
clippy::redundant_else,
|
clippy::redundant_else,
|
||||||
clippy::ref_option,
|
clippy::ref_option,
|
||||||
clippy::shadow_unrelated,
|
|
||||||
clippy::similar_names,
|
clippy::similar_names,
|
||||||
clippy::single_match_else,
|
clippy::single_match_else,
|
||||||
clippy::struct_excessive_bools,
|
clippy::struct_excessive_bools,
|
||||||
|
@ -14,26 +14,19 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::cast_sign_loss,
|
clippy::cast_sign_loss,
|
||||||
clippy::default_trait_access,
|
clippy::default_trait_access,
|
||||||
clippy::derive_partial_eq_without_eq,
|
|
||||||
clippy::enum_glob_use,
|
clippy::enum_glob_use,
|
||||||
clippy::if_same_then_else,
|
|
||||||
clippy::inherent_to_string,
|
clippy::inherent_to_string,
|
||||||
clippy::into_iter_without_iter,
|
|
||||||
clippy::items_after_statements,
|
clippy::items_after_statements,
|
||||||
clippy::match_bool,
|
clippy::match_bool,
|
||||||
clippy::match_on_vec_items,
|
clippy::match_on_vec_items,
|
||||||
clippy::match_same_arms,
|
clippy::match_same_arms,
|
||||||
clippy::missing_errors_doc,
|
clippy::missing_errors_doc,
|
||||||
clippy::module_name_repetitions,
|
|
||||||
clippy::must_use_candidate,
|
clippy::must_use_candidate,
|
||||||
clippy::needless_lifetimes,
|
clippy::needless_lifetimes,
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::new_without_default,
|
|
||||||
clippy::nonminimal_bool,
|
clippy::nonminimal_bool,
|
||||||
clippy::or_fun_call,
|
|
||||||
clippy::redundant_else,
|
clippy::redundant_else,
|
||||||
clippy::ref_option,
|
clippy::ref_option,
|
||||||
clippy::shadow_unrelated,
|
|
||||||
clippy::similar_names,
|
clippy::similar_names,
|
||||||
clippy::single_match_else,
|
clippy::single_match_else,
|
||||||
clippy::struct_excessive_bools,
|
clippy::struct_excessive_bools,
|
||||||
|
@ -1,34 +1,22 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::cast_sign_loss,
|
clippy::cast_sign_loss,
|
||||||
clippy::default_trait_access,
|
|
||||||
clippy::derive_partial_eq_without_eq,
|
|
||||||
clippy::doc_markdown,
|
clippy::doc_markdown,
|
||||||
clippy::enum_glob_use,
|
clippy::enum_glob_use,
|
||||||
clippy::if_same_then_else,
|
|
||||||
clippy::inherent_to_string,
|
clippy::inherent_to_string,
|
||||||
clippy::into_iter_without_iter,
|
|
||||||
clippy::items_after_statements,
|
clippy::items_after_statements,
|
||||||
clippy::large_enum_variant,
|
|
||||||
clippy::match_bool,
|
clippy::match_bool,
|
||||||
clippy::match_same_arms,
|
clippy::match_same_arms,
|
||||||
clippy::module_name_repetitions,
|
|
||||||
clippy::needless_lifetimes,
|
clippy::needless_lifetimes,
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::new_without_default,
|
|
||||||
clippy::nonminimal_bool,
|
clippy::nonminimal_bool,
|
||||||
clippy::or_fun_call,
|
|
||||||
clippy::redundant_else,
|
clippy::redundant_else,
|
||||||
clippy::ref_option,
|
clippy::ref_option,
|
||||||
clippy::shadow_unrelated,
|
|
||||||
clippy::similar_names,
|
|
||||||
clippy::single_match,
|
|
||||||
clippy::single_match_else,
|
clippy::single_match_else,
|
||||||
clippy::struct_field_names,
|
clippy::struct_field_names,
|
||||||
clippy::too_many_arguments,
|
clippy::too_many_arguments,
|
||||||
clippy::too_many_lines,
|
clippy::too_many_lines,
|
||||||
clippy::toplevel_ref_arg,
|
clippy::toplevel_ref_arg,
|
||||||
clippy::uninlined_format_args,
|
clippy::uninlined_format_args
|
||||||
clippy::useless_let_if_seq
|
|
||||||
)]
|
)]
|
||||||
|
|
||||||
mod derive;
|
mod derive;
|
||||||
|
16
src/lib.rs
16
src/lib.rs
@ -380,32 +380,18 @@
|
|||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::cast_possible_truncation,
|
clippy::cast_possible_truncation,
|
||||||
clippy::cognitive_complexity,
|
|
||||||
clippy::declare_interior_mutable_const,
|
|
||||||
clippy::doc_markdown,
|
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::items_after_statements,
|
||||||
clippy::large_enum_variant,
|
|
||||||
clippy::len_without_is_empty,
|
clippy::len_without_is_empty,
|
||||||
clippy::missing_errors_doc,
|
clippy::missing_errors_doc,
|
||||||
clippy::missing_safety_doc,
|
clippy::missing_safety_doc,
|
||||||
clippy::module_inception,
|
|
||||||
clippy::module_name_repetitions,
|
|
||||||
clippy::must_use_candidate,
|
clippy::must_use_candidate,
|
||||||
clippy::needless_doctest_main,
|
clippy::needless_doctest_main,
|
||||||
clippy::needless_lifetimes,
|
clippy::needless_lifetimes,
|
||||||
clippy::new_without_default,
|
clippy::new_without_default,
|
||||||
clippy::or_fun_call,
|
|
||||||
clippy::ptr_arg,
|
|
||||||
clippy::ptr_as_ptr,
|
clippy::ptr_as_ptr,
|
||||||
clippy::ptr_cast_constness,
|
clippy::ptr_cast_constness,
|
||||||
clippy::toplevel_ref_arg,
|
clippy::uninlined_format_args
|
||||||
clippy::transmute_undefined_repr, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/8417
|
|
||||||
clippy::uninlined_format_args,
|
|
||||||
clippy::useless_let_if_seq,
|
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[cfg(built_with_cargo)]
|
#[cfg(built_with_cargo)]
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#![allow(clippy::field_reassign_with_default)]
|
|
||||||
|
|
||||||
use cxx_gen::{generate_header_and_cc, Opt};
|
use cxx_gen::{generate_header_and_cc, Opt};
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/12257
|
|
||||||
clippy::items_after_statements,
|
clippy::items_after_statements,
|
||||||
clippy::uninlined_format_args,
|
clippy::uninlined_format_args,
|
||||||
clippy::unused_async
|
clippy::unused_async
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::boxed_local,
|
clippy::boxed_local,
|
||||||
clippy::derive_partial_eq_without_eq,
|
|
||||||
clippy::just_underscores_and_digits,
|
|
||||||
clippy::missing_errors_doc,
|
clippy::missing_errors_doc,
|
||||||
clippy::missing_safety_doc,
|
clippy::missing_safety_doc,
|
||||||
clippy::must_use_candidate,
|
clippy::must_use_candidate,
|
||||||
clippy::needless_lifetimes,
|
clippy::needless_lifetimes,
|
||||||
clippy::needless_pass_by_ref_mut,
|
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::ptr_arg,
|
|
||||||
clippy::trivially_copy_pass_by_ref,
|
|
||||||
clippy::unnecessary_literal_bound,
|
clippy::unnecessary_literal_bound,
|
||||||
clippy::unnecessary_wraps,
|
clippy::unnecessary_wraps,
|
||||||
clippy::unused_self
|
clippy::unused_self
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::assertions_on_constants,
|
clippy::assertions_on_constants,
|
||||||
clippy::assertions_on_result_states,
|
|
||||||
clippy::cast_possible_truncation,
|
clippy::cast_possible_truncation,
|
||||||
clippy::cast_possible_wrap,
|
clippy::cast_possible_wrap,
|
||||||
clippy::float_cmp,
|
clippy::float_cmp,
|
||||||
clippy::needless_pass_by_ref_mut,
|
|
||||||
clippy::needless_pass_by_value,
|
clippy::needless_pass_by_value,
|
||||||
clippy::ptr_cast_constness,
|
clippy::ptr_cast_constness,
|
||||||
clippy::unit_cmp,
|
clippy::unit_cmp
|
||||||
clippy::unseparated_literal_suffix
|
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use cxx::{SharedPtr, UniquePtr};
|
use cxx::{SharedPtr, UniquePtr};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user