diff --git a/lib/src/working_copy.rs b/lib/src/working_copy.rs index 1a0846aff..f3a54649a 100644 --- a/lib/src/working_copy.rs +++ b/lib/src/working_copy.rs @@ -383,6 +383,12 @@ pub enum ResetError { TreeStateError(#[from] TreeStateError), } +struct WorkItem { + dir: RepoPath, + disk_dir: PathBuf, + git_ignore: Arc, +} + #[derive(Debug, Error)] pub enum TreeStateError { #[error("Reading tree state from {path}: {source}")] @@ -642,11 +648,6 @@ impl TreeState { }); let matcher = IntersectionMatcher::new(sparse_matcher.as_ref(), fsmonitor_matcher); - struct WorkItem { - dir: RepoPath, - disk_dir: PathBuf, - git_ignore: Arc, - } let mut work = vec![WorkItem { dir: RepoPath::root(), disk_dir: self.working_copy_path.clone(),