aboutsummaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-01-30 22:25:02 +0100
committerHampusM <hampus@hampusmat.com>2023-01-30 22:25:02 +0100
commite8a2475b2f07da14c45a429b2b52e75322d0efb5 (patch)
treeac359083d6cacf51d7bb6ef6d6e1686ad04504c4 /macros/src/lib.rs
parent178267c701c233542078c09fe6b19802f9642dbd (diff)
fix: add missing dummy async injectable impl
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 4c78204..04720c1 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -174,7 +174,11 @@ pub fn injectable(args_stream: TokenStream, input_stream: TokenStream) -> TokenS
let injectable_impl =
InjectableImpl::<Dependency>::parse(input_stream).unwrap_or_abort();
- set_dummy(injectable_impl.expand_dummy_blocking_impl());
+ set_dummy(if is_async_flag.is_on() {
+ injectable_impl.expand_dummy_async_impl()
+ } else {
+ injectable_impl.expand_dummy_blocking_impl()
+ });
injectable_impl.validate().unwrap_or_abort();