From 21a6a244b349fa69d79061e0396d84434c4a888b Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Mon, 2 Dec 2024 21:03:18 +0900 Subject: [PATCH] local_working_copy: move DirectoryToVisit closer to new snapshotter type --- lib/src/local_working_copy.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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,