Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
clippy: Disallow lint `type_complexity`
Lorenz Leutgeb committed 15 days ago
commit 44244dc00f9a6400c5d81b61ec5c593d69fbe0f2
parent ffc8115
9 files changed +2 -8
modified 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"

modified 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)))),
modified 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};
modified 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;

modified crates/radicle/src/node.rs
@@ -1,4 +1,3 @@
-
#![allow(clippy::type_complexity)]
#![allow(clippy::collapsible_if)]
mod features;

modified 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;
modified 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;
modified crates/radicle/src/node/refs/store.rs
@@ -1,4 +1,3 @@
-
#![allow(clippy::type_complexity)]
use std::num::TryFromIntError;
use std::str::FromStr;

modified 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<bool, Error>;
    /// Get the repos seeded by the given node.
+
    #[allow(clippy::type_complexity)]
    fn seeded_by(
        &self,
        nid: &NodeId,