diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-18 14:42:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-18 14:42:23 +0200 |
commit | 8d15cf4888be1261a0e6ec39088dc8104d6f0197 (patch) | |
tree | 34b0965ab5ffb2520da32c68a9494da9206daabf /src/di_container.rs | |
parent | 5a55fc3934675aa0d96ccb5e8e3466095e2c75a9 (diff) |
refactor: add put factory return types in TransientPtr automatically
Diffstat (limited to 'src/di_container.rs')
-rw-r--r-- | src/di_container.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/di_container.rs b/src/di_container.rs index ac75f81..3adee09 100644 --- a/src/di_container.rs +++ b/src/di_container.rs @@ -982,7 +982,7 @@ mod tests use crate as syrette; #[crate::factory] - type IUserManagerFactory = dyn Fn(Vec<i128>) -> TransientPtr<dyn IUserManager>; + type IUserManagerFactory = dyn Fn(Vec<i128>) -> dyn IUserManager; mock! { Provider {} @@ -1078,7 +1078,7 @@ mod tests use crate as syrette; #[crate::factory] - type IUserManagerFactory = dyn Fn(Vec<i128>) -> TransientPtr<dyn IUserManager>; + type IUserManagerFactory = dyn Fn(Vec<i128>) -> dyn IUserManager; mock! { Provider {} |