diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-20 17:37:54 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-21 18:17:50 +0200 |
commit | f9d53a16fe08aedb805c52630d649aa035163edc (patch) | |
tree | 65ab9ab7f4493b02059273c5a454817481eaf4c4 /src | |
parent | f12927f0b8956880289fe6ba8c98039c57c5b21c (diff) |
refactor: make the declare_default_factory macro take a ty
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ); } |