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:
parent
4fd9203785
commit
92eb92d1dd
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue