summaryrefslogtreecommitdiff
path: root/embassy-macros
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-03-29 03:00:48 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-03-29 03:00:48 +0200
commitd7c3a38efceacbd5a326c84c6e0bbef44b06e97c (patch)
tree710b6553a45b99719288ab9de9084e0a93554cee /embassy-macros
parentd5ab02792c5489668bd399ac094900f5e26b3420 (diff)
downloadembassy-d7c3a38efceacbd5a326c84c6e0bbef44b06e97c.zip
Reexport macros at root, use eveywhere as `#[embassy::task]`
Diffstat (limited to 'embassy-macros')
-rw-r--r--embassy-macros/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-macros/src/lib.rs b/embassy-macros/src/lib.rs
index 26b49b2e..145714f2 100644
--- a/embassy-macros/src/lib.rs
+++ b/embassy-macros/src/lib.rs
@@ -256,7 +256,7 @@ pub fn main(args: TokenStream, item: TokenStream) -> TokenStream {
let chip_setup = chip::generate(macro_args);
let result = quote! {
- #[embassy::executor::task]
+ #[embassy::task]
async fn __embassy_main(#args) {
#task_fn_body
}