From 4cb3884e24b3cba3347ff93475bbabd6fe18d2fa Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 22 Jul 2022 13:25:45 +0200 Subject: refactor: make factories an optional feature --- macros/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'macros/src') diff --git a/macros/src/lib.rs b/macros/src/lib.rs index ed1a509..73fb2dc 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -12,7 +12,6 @@ mod injectable_macro_args; mod libs; use declare_interface_args::DeclareInterfaceArgs; -use factory_type_alias::FactoryTypeAlias; use injectable_impl::InjectableImpl; use injectable_macro_args::InjectableMacroArgs; use libs::intertrait_macros::gen_caster::generate_caster; @@ -52,7 +51,7 @@ pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenSt #[proc_macro_attribute] pub fn factory(_: TokenStream, type_alias_stream: TokenStream) -> TokenStream { - let FactoryTypeAlias { + let factory_type_alias::FactoryTypeAlias { type_alias, factory_interface, arg_types, @@ -73,7 +72,7 @@ pub fn factory(_: TokenStream, type_alias_stream: TokenStream) -> TokenStream syrette::castable_factory::CastableFactory< #arg_types, #return_type - > -> syrette::castable_factory::AnyFactory + > -> syrette::interfaces::any_factory::AnyFactory ); } .into() -- cgit v1.2.3-18-g5258