From 9a60751a901f568bdeb154c4115235d4f3a0f8b9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 20 Mar 2026 21:54:29 +0800 Subject: Apply clippy suggestions and improve code quality --- legacy_data/src/data/local/workspace_analyzer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'legacy_data/src/data/local') 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 = 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 -- cgit