diff --git a/embassy/src/executor/raw/mod.rs b/embassy/src/executor/raw/mod.rs index 24150511a..5034c0d66 100644 --- a/embassy/src/executor/raw/mod.rs +++ b/embassy/src/executor/raw/mod.rs @@ -165,7 +165,7 @@ impl TaskStorage { /// on a different executor. pub fn spawn(&'static self, future: impl FnOnce() -> F) -> SpawnToken { if self.spawn_mark_used() { - return unsafe { SpawnToken::::new(self.spawn_initialize(future)) } + return unsafe { SpawnToken::::new(self.spawn_initialize(future)) }; } SpawnToken::::new_failed()