aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor-macros/src/macros/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor-macros/src/macros/main.rs')
-rw-r--r--embassy-executor-macros/src/macros/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-executor-macros/src/macros/main.rs b/embassy-executor-macros/src/macros/main.rs
index a0e7b3401..fcc04d9c0 100644
--- a/embassy-executor-macros/src/macros/main.rs
+++ b/embassy-executor-macros/src/macros/main.rs
@@ -181,7 +181,7 @@ For example: `#[embassy_executor::main(entry = ..., executor = \"some_crate::Exe
181 let mut executor = #executor::new(); 181 let mut executor = #executor::new();
182 let executor = unsafe { __make_static(&mut executor) }; 182 let executor = unsafe { __make_static(&mut executor) };
183 executor.run(|spawner| { 183 executor.run(|spawner| {
184 spawner.must_spawn(__embassy_main(spawner)); 184 spawner.spawn(__embassy_main(spawner).unwrap());
185 }) 185 })
186 }, 186 },
187 ), 187 ),
@@ -191,7 +191,7 @@ For example: `#[embassy_executor::main(entry = ..., executor = \"some_crate::Exe
191 let executor = ::std::boxed::Box::leak(::std::boxed::Box::new(#executor::new())); 191 let executor = ::std::boxed::Box::leak(::std::boxed::Box::new(#executor::new()));
192 192
193 executor.start(|spawner| { 193 executor.start(|spawner| {
194 spawner.must_spawn(__embassy_main(spawner)); 194 spawner.spawn(__embassy_main(spawner).unwrap());
195 }); 195 });
196 196
197 Ok(()) 197 Ok(())