From 8d15cf4888be1261a0e6ec39088dc8104d6f0197 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 14:42:23 +0200 Subject: refactor: add put factory return types in TransientPtr automatically --- examples/factory/interfaces/user.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/factory') diff --git a/examples/factory/interfaces/user.rs b/examples/factory/interfaces/user.rs index aafd0cb..75fbc87 100644 --- a/examples/factory/interfaces/user.rs +++ b/examples/factory/interfaces/user.rs @@ -1,5 +1,4 @@ use syrette::factory; -use syrette::ptr::TransientPtr; pub trait IUser { @@ -9,5 +8,4 @@ pub trait IUser } #[factory] -pub type IUserFactory = - dyn Fn(&'static str, &'static str, &'static str) -> TransientPtr; +pub type IUserFactory = dyn Fn(&'static str, &'static str, &'static str) -> dyn IUser; -- cgit v1.2.3-18-g5258