diff --git a/crates/semantic_index/src/semantic_index.rs b/crates/semantic_index/src/semantic_index.rs index 7fee09dcff..396a0a8607 100644 --- a/crates/semantic_index/src/semantic_index.rs +++ b/crates/semantic_index/src/semantic_index.rs @@ -517,7 +517,7 @@ impl SemanticIndex { .map(|worktree| self.worktree_previously_indexed(worktree.read(cx).abs_path())) .collect::>(); - cx.spawn(|this, mut cx| async move { + cx.spawn(|_, _cx| async move { futures::future::join_all(worktree_scans_complete).await; let worktree_indexed_previously =