fix: nightly ci

This commit is contained in:
Kingtous committed 2022-11-08 21:17:56 +08:00
1 parent d0aedaedce
commit 1109598131
5 files changed
+58 -11

No files matched your search

+2
View File
@@ -807,6 +807,8 @@ pub fn is_root() -> bool {
#[inline]
pub fn check_super_user_permission() -> bool {
#[cfg(feature = "flatpak")]
return true;
#[cfg(any(windows, target_os = "linux"))]
return crate::platform::check_super_user_permission().unwrap_or(false);
#[cfg(not(any(windows, target_os = "linux")))]