diff options
Diffstat (limited to 'embassy-macros')
-rw-r--r-- | embassy-macros/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-macros/src/lib.rs b/embassy-macros/src/lib.rs index 3dc295fc..d00baebf 100644 --- a/embassy-macros/src/lib.rs +++ b/embassy-macros/src/lib.rs @@ -110,7 +110,10 @@ pub fn task(args: TokenStream, item: TokenStream) -> TokenStream { quote!(impl ::core::future::Future + 'static) }; + let attrs = &task_fn.attrs; + let result = quote! { + #(#attrs)* #visibility fn #name(#args) -> #embassy_path::executor::SpawnToken<#impl_ty> { use #embassy_path::executor::raw::Task; #task_fn |