From f9d53a16fe08aedb805c52630d649aa035163edc Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 20 Aug 2022 17:37:54 +0200 Subject: refactor: make the declare_default_factory macro take a ty --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 ); } -- cgit v1.2.3-18-g5258