Disable the nightly clippy unnecessary_wraps lint (#1403)

It seems to be a bit broken - some of our functions return `Result` for
consistency with similar functions. But the lint picks them up anyway.
This commit is contained in:
teor 2020-12-01 12:20:57 +10:00 committed by GitHub
parent 4fd9203785
commit 92eb92d1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 1 deletions

View File

@ -8,8 +8,10 @@
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_chain")]
// #![deny(missing_docs)]
#![allow(clippy::try_err)]
// Disable some broken or unwanted clippy nightly lints
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::from_iter_instead_of_collect)]
#![allow(clippy::unnecessary_wraps)]
#[macro_use]
extern crate serde;

View File

@ -36,6 +36,9 @@
// Re-enable this after cleaning the API surface.
//#![deny(missing_docs)]
#![allow(clippy::try_err)]
// Disable some broken or unwanted clippy nightly lints
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::unnecessary_wraps)]
mod block;
mod checkpoint;

View File

@ -38,6 +38,9 @@
// Tracing causes false positives on this lint:
// https://github.com/tokio-rs/tracing/issues/553
#![allow(clippy::cognitive_complexity)]
// Disable some broken or unwanted clippy nightly lints
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::unnecessary_wraps)]
#[macro_use]
extern crate pin_project;

View File

@ -2,6 +2,9 @@
#![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
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::unnecessary_wraps)]
use displaydoc::Display;
#[cfg(windows)]

View File

@ -5,8 +5,10 @@
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_state")]
#![warn(missing_docs)]
#![allow(clippy::try_err)]
// Disable some broken or unwanted clippy nightly lints
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::field_reassign_with_default)]
#![allow(clippy::unnecessary_wraps)]
mod config;
mod constants;

View File

@ -1,5 +1,6 @@
//! Miscellaneous test code for Zebra.
// Disable some broken or unwanted clippy nightly lints
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::from_iter_instead_of_collect)]
// Each lazy_static variable uses additional recursion

View File

@ -14,9 +14,10 @@
#![warn(warnings, missing_docs, trivial_casts, unused_qualifications)]
#![forbid(unsafe_code)]
#![allow(dead_code)]
#![allow(clippy::field_reassign_with_default)]
#![allow(clippy::try_err)]
// Disable some broken or unwanted clippy nightly lints
#![allow(clippy::unknown_clippy_lints)]
#![allow(clippy::field_reassign_with_default)]
use color_eyre::eyre::Result;
use eyre::WrapErr;