Hide the implementation of Task (#22009)
The `Option<T>` within `Ready` is confusing and using `None` for it can cause crashes. There was actually one instance of this! Release Notes: - N/A
This commit is contained in:
@@ -2540,7 +2540,7 @@ impl Project {
|
||||
.read(cx)
|
||||
.list_toolchains(worktree_id, language_name, cx)
|
||||
})
|
||||
.unwrap_or(Task::Ready(None))
|
||||
.ok()?
|
||||
.await
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user