🐛 修复mac编译异常

This commit is contained in:
BTMuli
2025-12-02 22:39:04 +08:00
parent 9435622a6d
commit 90d71be17e

View File

@@ -75,7 +75,7 @@ pub async fn get_dir_size(path: String) -> u64 {
pub fn is_in_admin() -> bool {
#[cfg(not(target_os = "windows"))]
{
return Err("This function is only supported on Windows.".into());
return false;
}
#[cfg(target_os = "windows")]
{