Suppress assigning_clones and incompatible_msrv

The incompatible_msrv one is a false positive because we have polyfills for
is_some_and() and is_ok_or() which are Rust 1.74. I'm not yet sure how to
communicate that to Clippy.
This commit is contained in:
The0x539 2024-03-09 04:36:11 -06:00 committed by Johannes Altmanninger
parent 4296c49a06
commit 6c0381c335
3 changed files with 6 additions and 2 deletions

View file

@ -71,6 +71,7 @@ asan = []
rust.non_camel_case_types = "allow" rust.non_camel_case_types = "allow"
rust.non_upper_case_globals = "allow" rust.non_upper_case_globals = "allow"
rust.unstable_name_collisions = "allow" rust.unstable_name_collisions = "allow"
clippy.assigning_clones = "allow"
clippy.bool_assert_comparison = "allow" clippy.bool_assert_comparison = "allow"
clippy.box_default = "allow" clippy.box_default = "allow"
clippy.collapsible_if = "allow" clippy.collapsible_if = "allow"
@ -79,9 +80,10 @@ clippy.derivable_impls = "allow"
clippy.field_reassign_with_default = "allow" clippy.field_reassign_with_default = "allow"
clippy.get_first = "allow" clippy.get_first = "allow"
clippy.if_same_then_else = "allow" clippy.if_same_then_else = "allow"
clippy.incompatible_msrv = "allow"
clippy.len_without_is_empty = "allow" clippy.len_without_is_empty = "allow"
clippy.manual_range_contains = "allow"
clippy.manual_is_ascii_check = "allow" clippy.manual_is_ascii_check = "allow"
clippy.manual_range_contains = "allow"
clippy.mut_from_ref = "allow" clippy.mut_from_ref = "allow"
clippy.needless_return = "allow" clippy.needless_return = "allow"
clippy.new_without_default = "allow" clippy.new_without_default = "allow"

View file

@ -2,6 +2,7 @@
// Delete this once we require Rust 1.74. // Delete this once we require Rust 1.74.
#![allow(unstable_name_collisions)] #![allow(unstable_name_collisions)]
#![allow(clippy::incompatible_msrv)]
#![allow(clippy::uninlined_format_args)] #![allow(clippy::uninlined_format_args)]
use std::ffi::{CString, OsStr}; use std::ffi::{CString, OsStr};

View file

@ -1,8 +1,8 @@
// Delete this once we require Rust 1.74.
#![cfg_attr(feature = "benchmark", feature(test))] #![cfg_attr(feature = "benchmark", feature(test))]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)] #![allow(non_upper_case_globals)]
#![allow(unstable_name_collisions)] #![allow(unstable_name_collisions)]
#![allow(clippy::assigning_clones)]
#![allow(clippy::bool_assert_comparison)] #![allow(clippy::bool_assert_comparison)]
#![allow(clippy::box_default)] #![allow(clippy::box_default)]
#![allow(clippy::collapsible_if)] #![allow(clippy::collapsible_if)]
@ -11,6 +11,7 @@
#![allow(clippy::field_reassign_with_default)] #![allow(clippy::field_reassign_with_default)]
#![allow(clippy::get_first)] #![allow(clippy::get_first)]
#![allow(clippy::if_same_then_else)] #![allow(clippy::if_same_then_else)]
#![allow(clippy::incompatible_msrv)]
#![allow(clippy::len_without_is_empty)] #![allow(clippy::len_without_is_empty)]
#![allow(clippy::manual_is_ascii_check)] #![allow(clippy::manual_is_ascii_check)]
#![allow(clippy::mut_from_ref)] #![allow(clippy::mut_from_ref)]