summaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/local/workspace_analyzer.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-10 06:12:50 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-10 06:12:50 +0800
commit1127b010478e7b4deb523fed544b900fa724ef3e (patch)
tree65791b96616d9607b2784f7598e61555e4efd66b /crates/vcs_data/src/data/local/workspace_analyzer.rs
parentcd49e78df083c9bd3a2d5fa027037ca6ab3080c8 (diff)
Fix typo in field names from "modifiy" to "modify"
Diffstat (limited to 'crates/vcs_data/src/data/local/workspace_analyzer.rs')
-rw-r--r--crates/vcs_data/src/data/local/workspace_analyzer.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/vcs_data/src/data/local/workspace_analyzer.rs b/crates/vcs_data/src/data/local/workspace_analyzer.rs
index a17063c..f2d83ff 100644
--- a/crates/vcs_data/src/data/local/workspace_analyzer.rs
+++ b/crates/vcs_data/src/data/local/workspace_analyzer.rs
@@ -200,7 +200,7 @@ impl<'a> AnalyzeResult<'a> {
// Using the most recently recorded Hash can more accurately identify moved items,
// but if it doesn't exist, fall back to the initially recorded Hash
mapping_data
- .last_modifiy_check_hash
+ .last_modify_check_hash
.as_ref()
.cloned()
.unwrap_or(mapping_data.hash_when_updated.clone()),
@@ -295,16 +295,16 @@ impl<'a> AnalyzeResult<'a> {
result.modified.insert(path.clone());
// Update last modified check time to modified time
- mapping_data.last_modifiy_check_time = modified_time;
- mapping_data.last_modifiy_check_result = true;
+ mapping_data.last_modify_check_time = modified_time;
+ mapping_data.last_modify_check_result = true;
} else {
// Update last modified check time to modified time
- mapping_data.last_modifiy_check_time = modified_time;
- mapping_data.last_modifiy_check_result = false;
+ mapping_data.last_modify_check_time = modified_time;
+ mapping_data.last_modify_check_result = false;
}
// Record latest hash
- mapping_data.last_modifiy_check_hash = Some(hash_calc.hash)
+ mapping_data.last_modify_check_hash = Some(hash_calc.hash)
}
// Persist the local sheet data