diff --git a/embassy-macros/src/macros/main.rs b/embassy-macros/src/macros/main.rs index 7af4ef83..6ae77398 100644 --- a/embassy-macros/src/macros/main.rs +++ b/embassy-macros/src/macros/main.rs @@ -105,10 +105,11 @@ pub fn run(args: syn::AttributeArgs, f: syn::ItemFn, main: TokenStream) -> Resul ctxt.check()?; let f_body = f.block; + let out = &f.sig.output; let result = quote! { #[::embassy_executor::task()] - async fn __embassy_main(#fargs) { + async fn __embassy_main(#fargs) #out { #f_body }