aboutsummaryrefslogtreecommitdiff
path: root/examples/async/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'examples/async/interfaces')
-rw-r--r--examples/async/interfaces/food.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/async/interfaces/food.rs b/examples/async/interfaces/food.rs
index e85519b..9d88083 100644
--- a/examples/async/interfaces/food.rs
+++ b/examples/async/interfaces/food.rs
@@ -1,4 +1,5 @@
use syrette::factory;
+use syrette::ptr::TransientPtr;
pub trait IFood: Send + Sync
{
@@ -6,4 +7,4 @@ pub trait IFood: Send + Sync
}
#[factory(threadsafe = true)]
-pub type IFoodFactory = dyn Fn() -> dyn IFood;
+pub type IFoodFactory = dyn Fn() -> TransientPtr<dyn IFood> + Send + Sync;