From 0ce29ca84c819a8a8587bf50101666fd9f4dbbf7 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 4 May 2022 16:31:52 +0200 Subject: [PATCH] fixup! Use explicit return statement TaskStorage::spawn --- embassy/src/executor/raw/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()