diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-20 21:54:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-20 21:57:49 +0800 |
| commit | 9a60751a901f568bdeb154c4115235d4f3a0f8b9 (patch) | |
| tree | 65df323f6478bae51473a3d6471df39a596ce9c5 /legacy_data/src/data/local | |
| parent | a9e5c086584d3e697188be7003f564e7e2137135 (diff) | |
Apply clippy suggestions and improve code quality
Diffstat (limited to 'legacy_data/src/data/local')
| -rw-r--r-- | legacy_data/src/data/local/workspace_analyzer.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy_data/src/data/local/workspace_analyzer.rs b/legacy_data/src/data/local/workspace_analyzer.rs index 82cd4e0..6373525 100644 --- a/legacy_data/src/data/local/workspace_analyzer.rs +++ b/legacy_data/src/data/local/workspace_analyzer.rs @@ -180,8 +180,8 @@ impl<'a> AnalyzeResult<'a> { // Files that exist locally but not in remote let mut erased_files: HashSet<PathBuf> = HashSet::new(); - if let Some(cached_data) = &analyze_ctx.cached_sheet_data { - if let Some(local_sheet) = &analyze_ctx.local_sheet { + if let Some(cached_data) = &analyze_ctx.cached_sheet_data + && let Some(local_sheet) = &analyze_ctx.local_sheet { let cached_sheet_mapping = cached_data.mapping(); let local_sheet_mapping = &local_sheet.data.mapping; @@ -192,7 +192,6 @@ impl<'a> AnalyzeResult<'a> { } } } - } // Files that exist in the local sheet but not in reality are considered lost let mut lost_files: HashSet<&PathBuf> = local_sheet_paths |
