From b1d28b73fded237d53e0d5d55996bc991c3aaf59 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 19 Jan 2021 06:39:20 +1000 Subject: [PATCH] Stop disabling lints that no longer cause warnings on nightly --- zebra-chain/src/lib.rs | 1 - zebra-script/src/lib.rs | 9 --------- zebra-state/src/lib.rs | 1 - zebrad/tests/acceptance.rs | 9 --------- 4 files changed, 20 deletions(-) diff --git a/zebra-chain/src/lib.rs b/zebra-chain/src/lib.rs index d1123552..a17362b5 100644 --- a/zebra-chain/src/lib.rs +++ b/zebra-chain/src/lib.rs @@ -16,7 +16,6 @@ // Use the old lint name to build without warnings on stable until 1.51 is stable #![allow(clippy::unknown_clippy_lints)] // The actual lints we want to disable -#![allow(clippy::from_iter_instead_of_collect)] #![allow(clippy::unnecessary_wraps)] #[macro_use] diff --git a/zebra-script/src/lib.rs b/zebra-script/src/lib.rs index 8254c8b3..28e82f51 100644 --- a/zebra-script/src/lib.rs +++ b/zebra-script/src/lib.rs @@ -2,15 +2,6 @@ #![doc(html_favicon_url = "https://www.zfnd.org/images/zebra-favicon-128.png")] #![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] #![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_script")] -// Disable some broken or unwanted clippy nightly lints -// Build without warnings on nightly 2021-01-17 and later and stable 1.51 and later -#![allow(unknown_lints)] -// Disable old lint warnings on nightly until 1.51 is stable -#![allow(renamed_and_removed_lints)] -// Use the old lint name to build without warnings on stable until 1.51 is stable -#![allow(clippy::unknown_clippy_lints)] -// The actual lints we want to disable -#![allow(clippy::unnecessary_wraps)] use displaydoc::Display; #[cfg(windows)] diff --git a/zebra-state/src/lib.rs b/zebra-state/src/lib.rs index f6be6142..545b7fe3 100644 --- a/zebra-state/src/lib.rs +++ b/zebra-state/src/lib.rs @@ -13,7 +13,6 @@ // Use the old lint name to build without warnings on stable until 1.51 is stable #![allow(clippy::unknown_clippy_lints)] // The actual lints we want to disable -#![allow(clippy::field_reassign_with_default)] #![allow(clippy::unnecessary_wraps)] mod config; diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 82717f22..fd7938a6 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -15,15 +15,6 @@ #![forbid(unsafe_code)] #![allow(dead_code)] #![allow(clippy::try_err)] -// Disable some broken or unwanted clippy nightly lints -// Build without warnings on nightly 2021-01-17 and later and stable 1.51 and later -#![allow(unknown_lints)] -// Disable old lint warnings on nightly until 1.51 is stable -#![allow(renamed_and_removed_lints)] -// Use the old lint name to build without warnings on stable until 1.51 is stable -#![allow(clippy::unknown_clippy_lints)] -// The actual lints we want to disable -#![allow(clippy::field_reassign_with_default)] use color_eyre::eyre::Result; use eyre::WrapErr;