From 89c665481077dbc64645caf1161dcd15e7e2386f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 4 Oct 2024 16:48:46 +0200 Subject: [PATCH] Fix `Task::chain` when chained task is `Task::none` --- runtime/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/task.rs b/runtime/src/task.rs index 3f97d134..4554c74b 100644 --- a/runtime/src/task.rs +++ b/runtime/src/task.rs @@ -117,7 +117,7 @@ impl Task { match self.0 { None => task, Some(first) => match task.0 { - None => Task::none(), + None => Task(Some(first)), Some(second) => Task(Some(boxed_stream(first.chain(second)))), }, }