aboutsummaryrefslogtreecommitdiff
path: root/src/async_di_container.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-18 14:42:23 +0200
committerHampusM <hampus@hampusmat.com>2022-09-18 14:42:23 +0200
commit8d15cf4888be1261a0e6ec39088dc8104d6f0197 (patch)
tree34b0965ab5ffb2520da32c68a9494da9206daabf /src/async_di_container.rs
parent5a55fc3934675aa0d96ccb5e8e3466095e2c75a9 (diff)
refactor: add put factory return types in TransientPtr automatically
Diffstat (limited to 'src/async_di_container.rs')
-rw-r--r--src/async_di_container.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/async_di_container.rs b/src/async_di_container.rs
index 6f87f1b..7dcca57 100644
--- a/src/async_di_container.rs
+++ b/src/async_di_container.rs
@@ -1134,7 +1134,7 @@ mod tests
use crate as syrette;
#[crate::factory(threadsafe = true)]
- type IUserManagerFactory = dyn Fn(Vec<i128>) -> TransientPtr<dyn IUserManager>;
+ type IUserManagerFactory = dyn Fn(Vec<i128>) -> dyn IUserManager;
mock! {
Provider {}
@@ -1244,7 +1244,7 @@ mod tests
use crate as syrette;
#[crate::factory(threadsafe = true)]
- type IUserManagerFactory = dyn Fn(Vec<i128>) -> TransientPtr<dyn IUserManager>;
+ type IUserManagerFactory = dyn Fn(Vec<i128>) -> dyn IUserManager;
mock! {
Provider {}