diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 90da3253d5..7627368934 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -2140,7 +2140,7 @@ impl<'a> sum_tree::Dimension<'a, EntrySummary> for PathKey { struct BackgroundScanner { fs: Arc, - snapshot: Arc>, + snapshot: Mutex, changes: HashMap, PathChange>, notify: UnboundedSender, executor: Arc, @@ -2155,7 +2155,7 @@ impl BackgroundScanner { ) -> Self { Self { fs, - snapshot: Arc::new(Mutex::new(snapshot)), + snapshot: Mutex::new(snapshot), notify, executor, changes: Default::default(),