aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-20 17:37:54 +0200
committerHampusM <hampus@hampusmat.com>2022-08-21 18:17:50 +0200
commitf9d53a16fe08aedb805c52630d649aa035163edc (patch)
tree65ab9ab7f4493b02059273c5a454817481eaf4c4
parentf12927f0b8956880289fe6ba8c98039c57c5b21c (diff)
refactor: make the declare_default_factory macro take a ty
-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
);
}