aboutsummaryrefslogtreecommitdiff
path: root/src/di_container
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container')
-rw-r--r--src/di_container/asynchronous/binding/builder.rs4
-rw-r--r--src/di_container/blocking/binding/builder.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/di_container/asynchronous/binding/builder.rs b/src/di_container/asynchronous/binding/builder.rs
index 3d03562..3ea8a35 100644
--- a/src/di_container/asynchronous/binding/builder.rs
+++ b/src/di_container/asynchronous/binding/builder.rs
@@ -185,7 +185,7 @@ where
AsyncBindingBuilderError,
>
where
- Args: 'static,
+ Args: std::marker::Tuple + 'static,
Return: 'static + ?Sized,
Interface: Fn<Args, Output = Return> + Send + Sync,
FactoryFunc:
@@ -278,7 +278,7 @@ where
AsyncBindingBuilderError,
>
where
- Args: 'static,
+ Args: std::marker::Tuple + 'static,
Return: 'static + ?Sized,
Interface:
Fn<Args, Output = crate::future::BoxFuture<'static, Return>> + Send + Sync,
diff --git a/src/di_container/blocking/binding/builder.rs b/src/di_container/blocking/binding/builder.rs
index 7aa1755..29422b6 100644
--- a/src/di_container/blocking/binding/builder.rs
+++ b/src/di_container/blocking/binding/builder.rs
@@ -198,7 +198,7 @@ where
BindingBuilderError,
>
where
- Args: 'static,
+ Args: std::marker::Tuple + 'static,
Return: 'static + ?Sized,
Interface: Fn<Args, Output = crate::ptr::TransientPtr<Return>>,
Func: Fn<(std::rc::Rc<DIContainerType>,), Output = Box<Interface>>,