Fix Task::chain when chained task is Task::none
This commit is contained in:
parent
bc215f6077
commit
89c6654810
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ impl<T> Task<T> {
|
||||||
match self.0 {
|
match self.0 {
|
||||||
None => task,
|
None => task,
|
||||||
Some(first) => match task.0 {
|
Some(first) => match task.0 {
|
||||||
None => Task::none(),
|
None => Task(Some(first)),
|
||||||
Some(second) => Task(Some(boxed_stream(first.chain(second)))),
|
Some(second) => Task(Some(boxed_stream(first.chain(second)))),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue