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