From d8219545c96c867df7483deb0a1a94c34e385915 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 19 Dec 2022 16:17:27 +0100 Subject: [PATCH] :lipstick: --- crates/project/src/worktree.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 77d055d5cd81bf38b8e6ab587b178cafabcae889..ee042ef9a3f17310310f9894c8c3f901d281ad4d 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -36,7 +36,7 @@ use std::{ any::Any, cmp::{self, Ordering}, convert::TryFrom, - ffi::{OsStr, OsString}, + ffi::OsStr, fmt, future::Future, mem, @@ -1489,9 +1489,9 @@ impl LocalSnapshot { } } - self.entries_by_path.insert_or_replace(entry.clone(), &()); let scan_id = self.scan_id; - let removed_entry = self.entries_by_id.insert_or_replace( + self.entries_by_path.insert_or_replace(entry.clone(), &()); + self.entries_by_id.insert_or_replace( PathEntry { id: entry.id, path: entry.path.clone(),