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/async/interfaces/food.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/async') diff --git a/examples/async/interfaces/food.rs b/examples/async/interfaces/food.rs index b310a3d..ae5eaef 100644 --- a/examples/async/interfaces/food.rs +++ b/examples/async/interfaces/food.rs @@ -1,5 +1,4 @@ use syrette::factory; -use syrette::ptr::TransientPtr; pub trait IFood { @@ -7,4 +6,4 @@ pub trait IFood } #[factory(threadsafe = true)] -pub type IFoodFactory = dyn Fn() -> TransientPtr; +pub type IFoodFactory = dyn Fn() -> dyn IFood; -- cgit v1.2.3-18-g5258