diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-02 19:45:22 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-02 19:45:22 +0100 |
commit | a319e939b46b154a71818378f0663a7655230108 (patch) | |
tree | 044a0acfd1eea1fab1de57b38b020d456264fca4 /crates/ide | |
parent | 548c18c062a9372b00b0ad0ad87bef26a6d9e82c (diff) | |
parent | cd69307aeeaa6996e782359f503666e5d7b64a25 (diff) |
Merge #8708
8708: fix: don't duplicate Progerss::Finised for cache priming r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/prime_caches.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/prime_caches.rs b/crates/ide/src/prime_caches.rs index 03597f507..d912a01b8 100644 --- a/crates/ide/src/prime_caches.rs +++ b/crates/ide/src/prime_caches.rs | |||
@@ -27,6 +27,7 @@ pub(crate) fn prime_caches(db: &RootDatabase, cb: &(dyn Fn(PrimeCachesProgress) | |||
27 | let topo = &graph.crates_in_topological_order(); | 27 | let topo = &graph.crates_in_topological_order(); |
28 | 28 | ||
29 | cb(PrimeCachesProgress::Started); | 29 | cb(PrimeCachesProgress::Started); |
30 | // Take care to emit the finish signal even when the computation is canceled. | ||
30 | let _d = stdx::defer(|| cb(PrimeCachesProgress::Finished)); | 31 | let _d = stdx::defer(|| cb(PrimeCachesProgress::Finished)); |
31 | 32 | ||
32 | // FIXME: This would be easy to parallelize, since it's in the ideal ordering for that. | 33 | // FIXME: This would be easy to parallelize, since it's in the ideal ordering for that. |