Merge branch '587_suppress' into 'main'
Suppress new clippy warnings in 1.65 Closes #587 See merge request tpo/core/arti!824
This commit is contained in:
commit
37aa8e79d1
|
@ -37,6 +37,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
// This file uses `unwrap()` a fair deal, but this is fine in test/bench code
|
||||
// because it's OK if tests and benchmarks simply crash if things go wrong.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod address;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
// EOF
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use std::future::Future;
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
#![allow(clippy::print_stderr)] // Allowed in this crate only.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
// Overrides specific to this crate:
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
/// Declare an integer type with some named elements.
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod dir;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use std::error::Error;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
// TODO: Try making it not Deref and having expose+expose_mut instead; how bad is it?
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use std::collections::BinaryHeap;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod chancell;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod builder;
|
||||
|
|
|
@ -485,6 +485,7 @@ impl<CF: AbstractChannelFactory> AbstractChanMgr<CF> {
|
|||
}
|
||||
|
||||
/// Possible actions that we'll decide to take when asked for a channel.
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum Action<C> {
|
||||
/// We found no channel. We're going to launch a new one,
|
||||
/// then tell everybody about it.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use std::time;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use tor_basic_utils::retry::RetryDelay;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod cmdline;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
|
|
@ -12,6 +12,7 @@ use crate::SourceInfo;
|
|||
/// An error originating from the tor-dirclient crate.
|
||||
#[derive(Error, Debug, Clone)]
|
||||
#[non_exhaustive]
|
||||
#[allow(clippy::large_enum_variant)] // TODO(nickm) worth fixing as we do #587
|
||||
pub enum Error {
|
||||
/// Error while getting a circuit
|
||||
#[error("Error while getting a circuit")]
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
// This clippy lint produces a false positive on `use strum`, below.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use derive_more::Display;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod events;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
// Glossary:
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod ids;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod cipher;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod channel;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
#![allow(non_upper_case_globals)]
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
pub mod config;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
#[cfg(all(
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
extern crate core;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
mod err;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use derive_more::{Add, Display, Div, From, FromStr, Mul};
|
||||
|
|
|
@ -44,6 +44,7 @@ WANT_LINTS = """
|
|||
#![deny(clippy::unwrap_used)]
|
||||
#![allow(clippy::let_unit_value)] // This can reasonably be done for explicitness
|
||||
#![allow(clippy::significant_drop_in_scrutinee)] // arti/-/merge_requests/588/#note_2812945
|
||||
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
|
||||
"""
|
||||
|
||||
# ---------- list of lints to apply or disapply *in tests* ----------
|
||||
|
@ -185,7 +186,7 @@ def main(lints, files):
|
|||
|
||||
always_insist = True
|
||||
if not files:
|
||||
files = subprocess.run(['find', '-name', '*.rs'],
|
||||
files = subprocess.run(['find', '.', '-name', '*.rs'],
|
||||
stdout=subprocess.PIPE, check=True).stdout
|
||||
files = files.decode('utf-8').rstrip('\n').split('\n')
|
||||
always_insist = False
|
||||
|
|
Loading…
Reference in New Issue