Skip to content

Commit 057f1c7

Browse files
committed
Use the rustc unknown lints attribute
The clippy unknown lints attribute was deprecated in nightly in rust-lang/rust#80524. The old lint name now produces a warning. Since we're using `allow(unknown_lints)` to suppress warnings, we need to adopt the canonical name, so we can continue to build without warnings. This change was automatically generated using the following script: ```sh sd clippy::unknown_clippy_lints unknown_lints \ $(fd . --extension rs zebra*)` ```
1 parent 3a093cc commit 057f1c7

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

zebra-chain/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// #![deny(missing_docs)]
1010
#![allow(clippy::try_err)]
1111
// Disable some broken or unwanted clippy nightly lints
12-
#![allow(clippy::unknown_clippy_lints)]
12+
#![allow(unknown_lints)]
1313
#![allow(clippy::from_iter_instead_of_collect)]
1414
#![allow(clippy::unnecessary_wraps)]
1515

zebra-consensus/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//#![deny(missing_docs)]
3838
#![allow(clippy::try_err)]
3939
// Disable some broken or unwanted clippy nightly lints
40-
#![allow(clippy::unknown_clippy_lints)]
40+
#![allow(unknown_lints)]
4141
#![allow(clippy::unnecessary_wraps)]
4242

4343
mod block;

zebra-network/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// https://github.com/tokio-rs/tracing/issues/553
4040
#![allow(clippy::cognitive_complexity)]
4141
// Disable some broken or unwanted clippy nightly lints
42-
#![allow(clippy::unknown_clippy_lints)]
42+
#![allow(unknown_lints)]
4343
#![allow(clippy::unnecessary_wraps)]
4444

4545
#[macro_use]

zebra-script/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")]
44
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_script")]
55
// Disable some broken or unwanted clippy nightly lints
6-
#![allow(clippy::unknown_clippy_lints)]
6+
#![allow(unknown_lints)]
77
#![allow(clippy::unnecessary_wraps)]
88

99
use displaydoc::Display;

zebra-state/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![warn(missing_docs)]
77
#![allow(clippy::try_err)]
88
// Disable some broken or unwanted clippy nightly lints
9-
#![allow(clippy::unknown_clippy_lints)]
9+
#![allow(unknown_lints)]
1010
#![allow(clippy::field_reassign_with_default)]
1111
#![allow(clippy::unnecessary_wraps)]
1212

zebra-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Miscellaneous test code for Zebra.
22
33
// Disable some broken or unwanted clippy nightly lints
4-
#![allow(clippy::unknown_clippy_lints)]
4+
#![allow(unknown_lints)]
55
#![allow(clippy::from_iter_instead_of_collect)]
66
// Each lazy_static variable uses additional recursion
77
#![recursion_limit = "256"]

zebrad/tests/acceptance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![allow(dead_code)]
1717
#![allow(clippy::try_err)]
1818
// Disable some broken or unwanted clippy nightly lints
19-
#![allow(clippy::unknown_clippy_lints)]
19+
#![allow(unknown_lints)]
2020
#![allow(clippy::field_reassign_with_default)]
2121

2222
use color_eyre::eyre::Result;

0 commit comments

Comments
 (0)