fix(list):继续尝试修复。
This commit is contained in:
parent
a6ac162bfd
commit
45844453b4
|
@ -106,7 +106,7 @@ pub async fn show_drives<R: Runtime>(
|
|||
.into_string()
|
||||
.unwrap();
|
||||
#[cfg(target_os = "windows")]
|
||||
let dirname = mount.path.clone().display();
|
||||
let dirname = mount.path.clone().unwrap_or_default().display();
|
||||
let dirname = if dirname.len() == 0 {
|
||||
String::from("/")
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user