aboutsummaryrefslogtreecommitdiff
path: root/embassy-macros
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-02 21:52:07 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-02 21:52:07 +0100
commit1f51367eb92830c4c2c36406444d255fddb6b283 (patch)
treec0b8829121fbe786e8ae922bd0e41dd4022ad40f /embassy-macros
parentd6f42eafad5582963a6d4c266f79425ed9b812e0 (diff)
Upgrade static-cell to v2.0
Diffstat (limited to 'embassy-macros')
-rw-r--r--embassy-macros/src/macros/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-macros/src/macros/main.rs b/embassy-macros/src/macros/main.rs
index 7c4d55163..3c0d58567 100644
--- a/embassy-macros/src/macros/main.rs
+++ b/embassy-macros/src/macros/main.rs
@@ -53,8 +53,7 @@ pub fn wasm() -> TokenStream {
53 quote! { 53 quote! {
54 #[wasm_bindgen::prelude::wasm_bindgen(start)] 54 #[wasm_bindgen::prelude::wasm_bindgen(start)]
55 pub fn main() -> Result<(), wasm_bindgen::JsValue> { 55 pub fn main() -> Result<(), wasm_bindgen::JsValue> {
56 static EXECUTOR: ::embassy_executor::_export::StaticCell<::embassy_executor::Executor> = ::embassy_executor::_export::StaticCell::new(); 56 let executor = ::std::boxed::Box::leak(::std::boxed::Box::new(::embassy_executor::Executor::new()));
57 let executor = EXECUTOR.init(::embassy_executor::Executor::new());
58 57
59 executor.start(|spawner| { 58 executor.start(|spawner| {
60 spawner.spawn(__embassy_main(spawner)).unwrap(); 59 spawner.spawn(__embassy_main(spawner)).unwrap();