diff options
author | HampusM <hampus@hampusmat.com> | 2023-12-22 22:33:09 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-12-22 22:33:09 +0100 |
commit | c501a5cc770f632eba1529de09bd3ae2d7958de6 (patch) | |
tree | e45333f7bf71ae17cf2016616ddf339a690bf8db /macros/src/lib.rs | |
parent | c56d6fee4835ca103d1e4e5fd7e9e3913c7ed6ba (diff) |
refactor: mock Dependency struct impl instead of IDependency
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r-- | macros/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index e55e23f..b9b6ea5 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -23,7 +23,6 @@ use syn::{ use crate::caster::generate_caster; use crate::declare_interface_args::DeclareInterfaceArgs; -use crate::injectable::dependency::Dependency; use crate::injectable::dummy::expand_dummy_blocking_impl; use crate::injectable::implementation::{InjectableImpl, InjectableImplError}; use crate::injectable::macro_args::InjectableMacroArgs; @@ -255,8 +254,7 @@ pub fn injectable(args_stream: TokenStream, input_stream: TokenStream) -> TokenS ); } - let injectable_impl = - InjectableImpl::<Dependency>::new(item_impl, &constructor).unwrap_or_abort(); + let injectable_impl = InjectableImpl::new(item_impl, &constructor).unwrap_or_abort(); injectable_impl.validate(is_async).unwrap_or_abort(); |