diff --git a/Cargo.toml b/Cargo.toml index 827ac508..f9b4330b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,7 +89,6 @@ fallible_impl_from = "deny" fn_params_excessive_bools = "deny" indexing_slicing = "deny" must_use_candidate = "deny" -type_complexity = "allow" unneeded_field_pattern = "deny" wildcard_enum_match_arm = "deny" diff --git a/crates/radicle-cli/src/commands/patch/review/builder.rs b/crates/radicle-cli/src/commands/patch/review/builder.rs index ff7360f2..ee124479 100644 --- a/crates/radicle-cli/src/commands/patch/review/builder.rs +++ b/crates/radicle-cli/src/commands/patch/review/builder.rs @@ -198,6 +198,7 @@ impl ReviewItem { self.hunk().and_then(|h| HunkHeader::try_from(h).ok()) } + #[allow(clippy::type_complexity)] fn paths(&self) -> (Option<(&Path, Oid)>, Option<(&Path, Oid)>) { match self { Self::FileAdded { path, new, .. } => (None, Some((path, Oid::from(*new.oid)))), diff --git a/crates/radicle-node/src/test/simulator.rs b/crates/radicle-node/src/test/simulator.rs index 8eff8ee5..0d537dd9 100644 --- a/crates/radicle-node/src/test/simulator.rs +++ b/crates/radicle-node/src/test/simulator.rs @@ -1,7 +1,6 @@ //! A simple P2P network simulator. Acts as the _reactor_, but without doing any I/O. #![allow(clippy::collapsible_if)] #![allow(dead_code)] -#![allow(clippy::type_complexity)] use std::cell::RefCell; use std::collections::{BTreeMap, BTreeSet, HashSet, VecDeque}; diff --git a/crates/radicle/src/cob/store.rs b/crates/radicle/src/cob/store.rs index 06f7d677..14b1e5ff 100644 --- a/crates/radicle/src/cob/store.rs +++ b/crates/radicle/src/cob/store.rs @@ -1,6 +1,5 @@ //! Generic COB storage. #![allow(clippy::large_enum_variant)] -#![allow(clippy::type_complexity)] use std::fmt::Debug; use std::marker::PhantomData; diff --git a/crates/radicle/src/node.rs b/crates/radicle/src/node.rs index b2181f74..f2efc0ef 100644 --- a/crates/radicle/src/node.rs +++ b/crates/radicle/src/node.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] #![allow(clippy::collapsible_if)] mod features; diff --git a/crates/radicle/src/node/notifications/store.rs b/crates/radicle/src/node/notifications/store.rs index be7654f4..e2702e6e 100644 --- a/crates/radicle/src/node/notifications/store.rs +++ b/crates/radicle/src/node/notifications/store.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] use std::marker::PhantomData; use std::num::TryFromIntError; use std::path::Path; diff --git a/crates/radicle/src/node/policy/store.rs b/crates/radicle/src/node/policy/store.rs index 9bd50972..c7c1c184 100644 --- a/crates/radicle/src/node/policy/store.rs +++ b/crates/radicle/src/node/policy/store.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] use std::collections::{BTreeMap, BTreeSet}; use std::marker::PhantomData; use std::path::Path; diff --git a/crates/radicle/src/node/refs/store.rs b/crates/radicle/src/node/refs/store.rs index 7b859f2e..614a7c5b 100644 --- a/crates/radicle/src/node/refs/store.rs +++ b/crates/radicle/src/node/refs/store.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] use std::num::TryFromIntError; use std::str::FromStr; diff --git a/crates/radicle/src/node/seed/store.rs b/crates/radicle/src/node/seed/store.rs index c00663cd..1b442226 100644 --- a/crates/radicle/src/node/seed/store.rs +++ b/crates/radicle/src/node/seed/store.rs @@ -1,4 +1,3 @@ -#![allow(clippy::type_complexity)] use std::str::FromStr; use localtime::LocalTime; @@ -35,6 +34,7 @@ pub trait Store: address::Store { timestamp: Timestamp, ) -> Result; /// Get the repos seeded by the given node. + #[allow(clippy::type_complexity)] fn seeded_by( &self, nid: &NodeId,