Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove unnecessary Arc around background scanner's snapshot
Max Brunsfeldc1f53358ba01
diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rsindex 90da3253d57..76273689349 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<dyn Fs>,- snapshot: Arc<Mutex<LocalSnapshot>>,+ snapshot: Mutex<LocalSnapshot>,changes: HashMap<Arc<Path>, PathChange>,notify: UnboundedSender<ScanState>,executor: Arc<executor::Background>,@@ -2155,7 +2155,7 @@ impl BackgroundScanner {) -> Self {Self {fs,- snapshot: Arc::new(Mutex::new(snapshot)),+ snapshot: Mutex::new(snapshot),notify,executor,changes: Default::default(),