Skip to content

Commit 6c0381c

Browse files
The0x539krobelus
authored andcommitted
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.
1 parent 4296c49 commit 6c0381c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ asan = []
7171
rust.non_camel_case_types = "allow"
7272
rust.non_upper_case_globals = "allow"
7373
rust.unstable_name_collisions = "allow"
74+
clippy.assigning_clones = "allow"
7475
clippy.bool_assert_comparison = "allow"
7576
clippy.box_default = "allow"
7677
clippy.collapsible_if = "allow"
@@ -79,9 +80,10 @@ clippy.derivable_impls = "allow"
7980
clippy.field_reassign_with_default = "allow"
8081
clippy.get_first = "allow"
8182
clippy.if_same_then_else = "allow"
83+
clippy.incompatible_msrv = "allow"
8284
clippy.len_without_is_empty = "allow"
83-
clippy.manual_range_contains = "allow"
8485
clippy.manual_is_ascii_check = "allow"
86+
clippy.manual_range_contains = "allow"
8587
clippy.mut_from_ref = "allow"
8688
clippy.needless_return = "allow"
8789
clippy.new_without_default = "allow"

src/bin/fish_indent.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
// Delete this once we require Rust 1.74.
44
#![allow(unstable_name_collisions)]
5+
#![allow(clippy::incompatible_msrv)]
56
#![allow(clippy::uninlined_format_args)]
67

78
use std::ffi::{CString, OsStr};

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// Delete this once we require Rust 1.74.
21
#![cfg_attr(feature = "benchmark", feature(test))]
32
#![allow(non_camel_case_types)]
43
#![allow(non_upper_case_globals)]
54
#![allow(unstable_name_collisions)]
5+
#![allow(clippy::assigning_clones)]
66
#![allow(clippy::bool_assert_comparison)]
77
#![allow(clippy::box_default)]
88
#![allow(clippy::collapsible_if)]
@@ -11,6 +11,7 @@
1111
#![allow(clippy::field_reassign_with_default)]
1212
#![allow(clippy::get_first)]
1313
#![allow(clippy::if_same_then_else)]
14+
#![allow(clippy::incompatible_msrv)]
1415
#![allow(clippy::len_without_is_empty)]
1516
#![allow(clippy::manual_is_ascii_check)]
1617
#![allow(clippy::mut_from_ref)]

0 commit comments

Comments
 (0)