From 2bebb6a48b57595d2d12d8c7299f9f96c1ba0186 Mon Sep 17 00:00:00 2001 From: Suyunmeng Date: Sat, 8 Nov 2025 10:09:02 +0800 Subject: [PATCH] style: format code --- src-tauri/src/utils/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/utils/path.rs b/src-tauri/src/utils/path.rs index 663c9fd..e02ae2c 100644 --- a/src-tauri/src/utils/path.rs +++ b/src-tauri/src/utils/path.rs @@ -12,7 +12,7 @@ fn normalize_path(path: &PathBuf) -> Result { let canonical = path .canonicalize() .map_err(|e| format!("Failed to canonicalize path: {e}"))?; - + let path_str = canonical.to_string_lossy(); if let Some(stripped) = path_str.strip_prefix(r"\\?\") { Ok(PathBuf::from(stripped)) @@ -20,7 +20,7 @@ fn normalize_path(path: &PathBuf) -> Result { Ok(canonical) } } - + #[cfg(not(target_os = "windows"))] { path.canonicalize()