clippy: Disallow lint `type_complexity`
We just need two exceptions.
This commit is contained in:
parent
ffc81154e4
commit
44244dc00f
|
|
@ -89,7 +89,6 @@ fallible_impl_from = "deny"
|
||||||
fn_params_excessive_bools = "deny"
|
fn_params_excessive_bools = "deny"
|
||||||
indexing_slicing = "deny"
|
indexing_slicing = "deny"
|
||||||
must_use_candidate = "deny"
|
must_use_candidate = "deny"
|
||||||
type_complexity = "allow"
|
|
||||||
unneeded_field_pattern = "deny"
|
unneeded_field_pattern = "deny"
|
||||||
wildcard_enum_match_arm = "deny"
|
wildcard_enum_match_arm = "deny"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -198,6 +198,7 @@ impl ReviewItem {
|
||||||
self.hunk().and_then(|h| HunkHeader::try_from(h).ok())
|
self.hunk().and_then(|h| HunkHeader::try_from(h).ok())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
fn paths(&self) -> (Option<(&Path, Oid)>, Option<(&Path, Oid)>) {
|
fn paths(&self) -> (Option<(&Path, Oid)>, Option<(&Path, Oid)>) {
|
||||||
match self {
|
match self {
|
||||||
Self::FileAdded { path, new, .. } => (None, Some((path, Oid::from(*new.oid)))),
|
Self::FileAdded { path, new, .. } => (None, Some((path, Oid::from(*new.oid)))),
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
//! A simple P2P network simulator. Acts as the _reactor_, but without doing any I/O.
|
//! A simple P2P network simulator. Acts as the _reactor_, but without doing any I/O.
|
||||||
#![allow(clippy::collapsible_if)]
|
#![allow(clippy::collapsible_if)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::collections::{BTreeMap, BTreeSet, HashSet, VecDeque};
|
use std::collections::{BTreeMap, BTreeSet, HashSet, VecDeque};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
//! Generic COB storage.
|
//! Generic COB storage.
|
||||||
#![allow(clippy::large_enum_variant)]
|
#![allow(clippy::large_enum_variant)]
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
#![allow(clippy::collapsible_if)]
|
#![allow(clippy::collapsible_if)]
|
||||||
mod features;
|
mod features;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::num::TryFromIntError;
|
use std::num::TryFromIntError;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
use std::collections::{BTreeMap, BTreeSet};
|
use std::collections::{BTreeMap, BTreeSet};
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
use std::num::TryFromIntError;
|
use std::num::TryFromIntError;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#![allow(clippy::type_complexity)]
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use localtime::LocalTime;
|
use localtime::LocalTime;
|
||||||
|
|
@ -35,6 +34,7 @@ pub trait Store: address::Store {
|
||||||
timestamp: Timestamp,
|
timestamp: Timestamp,
|
||||||
) -> Result<bool, Error>;
|
) -> Result<bool, Error>;
|
||||||
/// Get the repos seeded by the given node.
|
/// Get the repos seeded by the given node.
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
fn seeded_by(
|
fn seeded_by(
|
||||||
&self,
|
&self,
|
||||||
nid: &NodeId,
|
nid: &NodeId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue