This PR reverts #6924, for the reasons stated in https://github.com/zed-industries/zed/pull/6924#issuecomment-2033076300. It also fixes an issue were the `find_all_references_task_sources` wasn't cleaned up in all cases. Release Notes: - N/A --------- Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
65cde17063
commit
7d5048e909
4 changed files with 26 additions and 325 deletions
|
@ -367,6 +367,7 @@ impl<F: FnOnce()> Drop for Deferred<F> {
|
|||
}
|
||||
|
||||
/// Run the given function when the returned value is dropped (unless it's cancelled).
|
||||
#[must_use]
|
||||
pub fn defer<F: FnOnce()>(f: F) -> Deferred<F> {
|
||||
Deferred(Some(f))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue