aboutsummaryrefslogtreecommitdiff
path: root/src/di_container/asynchronous
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-07 21:01:10 +0100
committerHampusM <hampus@hampusmat.com>2022-11-07 21:01:10 +0100
commit1b27423ae2f2455c72cc7020051c861227aeeeb5 (patch)
tree8dbc1392ba63d489f05be0b93d1366a82b7fb7a3 /src/di_container/asynchronous
parent0e1308d8ccf3565559084de19a9130975ca8ce78 (diff)
fix: make factories work again after Rust nightly-2022-11-07
Diffstat (limited to 'src/di_container/asynchronous')
-rw-r--r--src/di_container/asynchronous/binding/builder.rs4
1 files changed, 2 insertions, 2 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,