Skip to content

Commit adb2e89

Browse files
committed
Migrate clippy lints to tool lints
1 parent 8e00273 commit adb2e89

File tree

3 files changed

+17
-29
lines changed

3 files changed

+17
-29
lines changed

crates/core_arch/src/lib.rs

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,20 @@
3535
external_doc
3636
)]
3737
#![cfg_attr(test, feature(test, abi_vectorcall, untagged_unions))]
38-
#![cfg_attr(
39-
feature = "cargo-clippy",
40-
deny(clippy::missing_inline_in_public_items,)
41-
)]
42-
#![cfg_attr(
43-
feature = "cargo-clippy",
44-
allow(
45-
clippy::inline_always,
46-
clippy::too_many_arguments,
47-
clippy::cast_sign_loss,
48-
clippy::cast_lossless,
49-
clippy::cast_possible_wrap,
50-
clippy::cast_possible_truncation,
51-
clippy::cast_precision_loss,
52-
clippy::shadow_reuse,
53-
clippy::cyclomatic_complexity,
54-
clippy::similar_names,
55-
clippy::many_single_char_names
56-
)
38+
#![deny(clippy::missing_inline_in_public_items)]
39+
#![allow(
40+
clippy::inline_always,
41+
clippy::too_many_arguments,
42+
clippy::cast_sign_loss,
43+
clippy::cast_lossless,
44+
clippy::cast_possible_wrap,
45+
clippy::cast_possible_truncation,
46+
clippy::cast_precision_loss,
47+
clippy::shadow_reuse,
48+
clippy::cyclomatic_complexity,
49+
clippy::cognitive_complexity,
50+
clippy::similar_names,
51+
clippy::many_single_char_names
5752
)]
5853
#![cfg_attr(test, allow(unused_imports))]
5954
#![no_std]

crates/std_detect/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
1414
#![unstable(feature = "stdsimd", issue = "27731")]
1515
#![feature(const_fn, staged_api, stdsimd, doc_cfg, allow_internal_unstable)]
16-
#![cfg_attr(feature = "cargo-clippy", allow(clippy::shadow_reuse))]
17-
#![cfg_attr(
18-
feature = "cargo-clippy",
19-
deny(clippy::missing_inline_in_public_items,)
20-
)]
16+
#![allow(clippy::shadow_reuse)]
17+
#![deny(clippy::missing_inline_in_public_items)]
2118
#![cfg_attr(target_os = "linux", feature(linkage))]
2219
#![cfg_attr(all(target_os = "freebsd", target_arch = "aarch64"), feature(asm))]
2320
#![cfg_attr(stdsimd_strict, deny(warnings))]

crates/stdsimd-test/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
//! This basically just disassembles the current executable and then parses the
44
//! output once globally and then provides the `assert` function which makes
55
//! assertions about the disassembly of a function.
6-
7-
#![cfg_attr(
8-
feature = "cargo-clippy",
9-
allow(clippy::missing_docs_in_private_items, clippy::print_stdout)
10-
)]
6+
#![allow(clippy::missing_docs_in_private_items, clippy::print_stdout)]
117

128
extern crate assert_instr_macro;
139
extern crate backtrace;

0 commit comments

Comments
 (0)