From 1b27423ae2f2455c72cc7020051c861227aeeeb5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 7 Nov 2022 21:01:10 +0100 Subject: fix: make factories work again after Rust nightly-2022-11-07 --- src/di_container/asynchronous/binding/builder.rs | 4 ++-- src/di_container/blocking/binding/builder.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/di_container') 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 + Send + Sync, FactoryFunc: @@ -278,7 +278,7 @@ where AsyncBindingBuilderError, > where - Args: 'static, + Args: std::marker::Tuple + 'static, Return: 'static + ?Sized, Interface: Fn> + 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>, Func: Fn<(std::rc::Rc,), Output = Box>, -- cgit v1.2.3-18-g5258