aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/factory.rs
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/interfaces/factory.rs
parent0e1308d8ccf3565559084de19a9130975ca8ce78 (diff)
fix: make factories work again after Rust nightly-2022-11-07
Diffstat (limited to 'src/interfaces/factory.rs')
-rw-r--r--src/interfaces/factory.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/factory.rs b/src/interfaces/factory.rs
index 58cf56f..c67abd6 100644
--- a/src/interfaces/factory.rs
+++ b/src/interfaces/factory.rs
@@ -1,3 +1,5 @@
+use std::marker::Tuple;
+
use crate::libs::intertrait::CastFrom;
use crate::ptr::TransientPtr;
@@ -5,6 +7,7 @@ use crate::ptr::TransientPtr;
pub trait IFactory<Args, ReturnInterface>:
Fn<Args, Output = TransientPtr<ReturnInterface>> + CastFrom
where
+ Args: Tuple,
ReturnInterface: 'static + ?Sized,
{
}
@@ -14,6 +17,7 @@ where
pub trait IThreadsafeFactory<Args, ReturnInterface>:
Fn<Args, Output = TransientPtr<ReturnInterface>> + crate::libs::intertrait::CastFromSync
where
+ Args: Tuple,
ReturnInterface: 'static + ?Sized,
{
}