aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5ca1b8f..5cc0cb3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -96,18 +96,18 @@ macro_rules! di_container_bind {
#[macro_export]
#[cfg(feature = "factory")]
macro_rules! declare_default_factory {
- ($interface: path) => {
+ ($interface: ty) => {
syrette::declare_interface!(
syrette::castable_factory::CastableFactory<
(),
- dyn $interface,
- > -> syrette::interfaces::factory::IFactory<(), dyn $interface>
+ $interface,
+ > -> syrette::interfaces::factory::IFactory<(), $interface>
);
syrette::declare_interface!(
syrette::castable_factory::CastableFactory<
(),
- dyn $interface,
+ $interface,
> -> syrette::interfaces::any_factory::AnyFactory
);
}