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")]
|
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_chain")]
|
||||||
// #![deny(missing_docs)]
|
// #![deny(missing_docs)]
|
||||||
#![allow(clippy::try_err)]
|
#![allow(clippy::try_err)]
|
||||||
|
// Disable some broken or unwanted clippy nightly lints
|
||||||
#![allow(clippy::unknown_clippy_lints)]
|
#![allow(clippy::unknown_clippy_lints)]
|
||||||
#![allow(clippy::from_iter_instead_of_collect)]
|
#![allow(clippy::from_iter_instead_of_collect)]
|
||||||
|
#![allow(clippy::unnecessary_wraps)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
// Re-enable this after cleaning the API surface.
|
// Re-enable this after cleaning the API surface.
|
||||||
//#![deny(missing_docs)]
|
//#![deny(missing_docs)]
|
||||||
#![allow(clippy::try_err)]
|
#![allow(clippy::try_err)]
|
||||||
|
// Disable some broken or unwanted clippy nightly lints
|
||||||
|
#![allow(clippy::unknown_clippy_lints)]
|
||||||
|
#![allow(clippy::unnecessary_wraps)]
|
||||||
|
|
||||||
mod block;
|
mod block;
|
||||||
mod checkpoint;
|
mod checkpoint;
|
||||||
|
|
|
@ -38,6 +38,9 @@
|
||||||
// Tracing causes false positives on this lint:
|
// Tracing causes false positives on this lint:
|
||||||
// https://github.com/tokio-rs/tracing/issues/553
|
// https://github.com/tokio-rs/tracing/issues/553
|
||||||
#![allow(clippy::cognitive_complexity)]
|
#![allow(clippy::cognitive_complexity)]
|
||||||
|
// Disable some broken or unwanted clippy nightly lints
|
||||||
|
#![allow(clippy::unknown_clippy_lints)]
|
||||||
|
#![allow(clippy::unnecessary_wraps)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate pin_project;
|
extern crate pin_project;
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
#![doc(html_favicon_url = "https://www.zfnd.org/images/zebra-favicon-128.png")]
|
#![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_logo_url = "https://www.zfnd.org/images/zebra-icon.png")]
|
||||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_script")]
|
#![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;
|
use displaydoc::Display;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|
|
@ -5,8 +5,10 @@
|
||||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_state")]
|
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_state")]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![allow(clippy::try_err)]
|
#![allow(clippy::try_err)]
|
||||||
|
// Disable some broken or unwanted clippy nightly lints
|
||||||
#![allow(clippy::unknown_clippy_lints)]
|
#![allow(clippy::unknown_clippy_lints)]
|
||||||
#![allow(clippy::field_reassign_with_default)]
|
#![allow(clippy::field_reassign_with_default)]
|
||||||
|
#![allow(clippy::unnecessary_wraps)]
|
||||||
|
|
||||||
mod config;
|
mod config;
|
||||||
mod constants;
|
mod constants;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
//! Miscellaneous test code for Zebra.
|
//! Miscellaneous test code for Zebra.
|
||||||
|
|
||||||
|
// Disable some broken or unwanted clippy nightly lints
|
||||||
#![allow(clippy::unknown_clippy_lints)]
|
#![allow(clippy::unknown_clippy_lints)]
|
||||||
#![allow(clippy::from_iter_instead_of_collect)]
|
#![allow(clippy::from_iter_instead_of_collect)]
|
||||||
// Each lazy_static variable uses additional recursion
|
// Each lazy_static variable uses additional recursion
|
||||||
|
|
|
@ -14,9 +14,10 @@
|
||||||
#![warn(warnings, missing_docs, trivial_casts, unused_qualifications)]
|
#![warn(warnings, missing_docs, trivial_casts, unused_qualifications)]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![allow(clippy::field_reassign_with_default)]
|
|
||||||
#![allow(clippy::try_err)]
|
#![allow(clippy::try_err)]
|
||||||
|
// Disable some broken or unwanted clippy nightly lints
|
||||||
#![allow(clippy::unknown_clippy_lints)]
|
#![allow(clippy::unknown_clippy_lints)]
|
||||||
|
#![allow(clippy::field_reassign_with_default)]
|
||||||
|
|
||||||
use color_eyre::eyre::Result;
|
use color_eyre::eyre::Result;
|
||||||
use eyre::WrapErr;
|
use eyre::WrapErr;
|
||||||
|
|
Loading…
Reference in New Issue