From 89c665481077dbc64645caf1161dcd15e7e2386f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 4 Oct 2024 16:48:46 +0200 Subject: Fix `Task::chain` when chained task is `Task::none` --- runtime/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') 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)))), }, } -- cgit