mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Remove unnecessary Arc around background scanner's snapshot
This commit is contained in:
parent
f7b2713b77
commit
c1f53358ba
1 changed files with 2 additions and 2 deletions
|
@ -2140,7 +2140,7 @@ impl<'a> sum_tree::Dimension<'a, EntrySummary> for PathKey {
|
||||||
|
|
||||||
struct BackgroundScanner {
|
struct BackgroundScanner {
|
||||||
fs: Arc<dyn Fs>,
|
fs: Arc<dyn Fs>,
|
||||||
snapshot: Arc<Mutex<LocalSnapshot>>,
|
snapshot: Mutex<LocalSnapshot>,
|
||||||
changes: HashMap<Arc<Path>, PathChange>,
|
changes: HashMap<Arc<Path>, PathChange>,
|
||||||
notify: UnboundedSender<ScanState>,
|
notify: UnboundedSender<ScanState>,
|
||||||
executor: Arc<executor::Background>,
|
executor: Arc<executor::Background>,
|
||||||
|
@ -2155,7 +2155,7 @@ impl BackgroundScanner {
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
fs,
|
fs,
|
||||||
snapshot: Arc::new(Mutex::new(snapshot)),
|
snapshot: Mutex::new(snapshot),
|
||||||
notify,
|
notify,
|
||||||
executor,
|
executor,
|
||||||
changes: Default::default(),
|
changes: Default::default(),
|
||||||
|
|
Loading…
Reference in a new issue