aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-10-01 17:43:24 +0200
committerHampusM <hampus@hampusmat.com>2022-10-01 17:43:48 +0200
commit29e6d376feda458b3f03c4875f7bcd07b9a8efb1 (patch)
treea4fe76088d3e2f186887ecfd240ccceb06b8b312
parentef8d5439c855924153ba671cc1697ca9f1a44f46 (diff)
chore: remove repetition of allowing clippy::module_name_repetitions
-rw-r--r--macros/src/lib.rs1
-rw-r--r--macros/src/util/syn_path.rs1
-rw-r--r--src/castable_factory/threadsafe.rs1
-rw-r--r--src/dependency_trace.rs2
-rw-r--r--src/errors/injectable.rs1
-rw-r--r--src/future.rs2
-rw-r--r--src/interfaces/factory.rs1
-rw-r--r--src/lib.rs1
-rw-r--r--src/libs/intertrait/mod.rs2
-rw-r--r--src/provider/async.rs1
-rw-r--r--src/provider/blocking.rs1
-rw-r--r--src/ptr.rs2
12 files changed, 2 insertions, 14 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 2d37c43..fc30016 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -1,5 +1,6 @@
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
+#![allow(clippy::module_name_repetitions)]
#![deny(missing_docs)]
//! Macros for the [Syrette](https://crates.io/crates/syrette) crate.
diff --git a/macros/src/util/syn_path.rs b/macros/src/util/syn_path.rs
index 15653bf..0e1b8f4 100644
--- a/macros/src/util/syn_path.rs
+++ b/macros/src/util/syn_path.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
use quote::ToTokens;
use syn::punctuated::Pair;
diff --git a/src/castable_factory/threadsafe.rs b/src/castable_factory/threadsafe.rs
index b91dceb..08c5ecf 100644
--- a/src/castable_factory/threadsafe.rs
+++ b/src/castable_factory/threadsafe.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
use crate::interfaces::any_factory::{AnyFactory, AnyThreadsafeFactory};
use crate::interfaces::factory::IThreadsafeFactory;
use crate::ptr::TransientPtr;
diff --git a/src/dependency_trace.rs b/src/dependency_trace.rs
index d46b762..86906f4 100644
--- a/src/dependency_trace.rs
+++ b/src/dependency_trace.rs
@@ -1,5 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
-
#[must_use]
pub fn create_dependency_trace(
dependency_history: &[&'static str],
diff --git a/src/errors/injectable.rs b/src/errors/injectable.rs
index ed161cb..df71f48 100644
--- a/src/errors/injectable.rs
+++ b/src/errors/injectable.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
//! Error types for structs that implement [`Injectable`].
//!
//! [`Injectable`]: crate::interfaces::injectable::Injectable
diff --git a/src/future.rs b/src/future.rs
index ae4b3a2..6df136f 100644
--- a/src/future.rs
+++ b/src/future.rs
@@ -1,8 +1,6 @@
//! Future related utilities.
//!
//! *This module is only available if Syrette is built with the "async" feature.*
-
-#![allow(clippy::module_name_repetitions)]
use std::future::Future;
use std::pin::Pin;
diff --git a/src/interfaces/factory.rs b/src/interfaces/factory.rs
index de1fca9..58cf56f 100644
--- a/src/interfaces/factory.rs
+++ b/src/interfaces/factory.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
use crate::libs::intertrait::CastFrom;
use crate::ptr::TransientPtr;
diff --git a/src/lib.rs b/src/lib.rs
index 082a93d..b4f43fe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,7 @@
#![cfg_attr(feature = "factory", feature(unboxed_closures, fn_traits))]
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
+#![allow(clippy::module_name_repetitions)]
#![deny(missing_docs)]
//! Syrette
diff --git a/src/libs/intertrait/mod.rs b/src/libs/intertrait/mod.rs
index 3b3e9ba..dc0f19e 100644
--- a/src/libs/intertrait/mod.rs
+++ b/src/libs/intertrait/mod.rs
@@ -1,5 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
-
//! A library providing direct casting among trait objects implemented by a type.
//!
//! In Rust, an object of a sub-trait of [`Any`] can be downcast to a concrete type
diff --git a/src/provider/async.rs b/src/provider/async.rs
index c9a5273..9925079 100644
--- a/src/provider/async.rs
+++ b/src/provider/async.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
use std::marker::PhantomData;
use std::sync::Arc;
diff --git a/src/provider/blocking.rs b/src/provider/blocking.rs
index e00786b..16e8847 100644
--- a/src/provider/blocking.rs
+++ b/src/provider/blocking.rs
@@ -1,4 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
use std::marker::PhantomData;
use std::rc::Rc;
diff --git a/src/ptr.rs b/src/ptr.rs
index 33f8a95..426a796 100644
--- a/src/ptr.rs
+++ b/src/ptr.rs
@@ -1,5 +1,3 @@
-#![allow(clippy::module_name_repetitions)]
-
//! Smart pointer type aliases.
use std::rc::Rc;
use std::sync::Arc;