diff --git a/lib/src/local_working_copy.rs b/lib/src/local_working_copy.rs index 57a0f1f90..4291271b0 100644 --- a/lib/src/local_working_copy.rs +++ b/lib/src/local_working_copy.rs @@ -631,13 +631,6 @@ struct FsmonitorMatcher { watchman_clock: Option, } -struct DirectoryToVisit<'a> { - dir: RepoPathBuf, - disk_dir: PathBuf, - git_ignore: Arc, - file_states: FileStates<'a>, -} - #[derive(Debug, Error)] pub enum TreeStateError { #[error("Reading tree state from {path}")] @@ -1023,6 +1016,13 @@ impl TreeState { } } +struct DirectoryToVisit<'a> { + dir: RepoPathBuf, + disk_dir: PathBuf, + git_ignore: Arc, + file_states: FileStates<'a>, +} + /// Helper to scan local-disk directories and files in parallel. struct FileSnapshotter<'a> { tree_state: &'a TreeState,