From d7aeb00212cd2dd47a19ee08d50a4e51a452cd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 21 Mar 2023 17:24:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(list):=E4=BF=AE=E5=A4=8DWindows=E4=B8=AD?= =?UTF-8?q?=E7=9B=98=E7=AC=A6=E6=98=BE=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/commands/files.rs b/src-tauri/src/commands/files.rs index 16053f2..bf58a5f 100644 --- a/src-tauri/src/commands/files.rs +++ b/src-tauri/src/commands/files.rs @@ -106,7 +106,7 @@ pub async fn show_drives( .into_string() .unwrap(); #[cfg(target_os = "windows")] - let dirname = mount.path.clone().unwrap_or_default().display(); + let dirname = mount.path.display().to_string(); let dirname = if dirname.len() == 0 { String::from("/") } else {