fix: cli feature compilation

This commit is contained in:
Kingtous
2022-06-27 12:09:27 +08:00
parent 0d9218eae7
commit d79bdd6afe
2 changed files with 2 additions and 1 deletions

View File

@@ -441,6 +441,7 @@ pub fn is_installed_daemon(_prompt: bool) -> bool {
}
pub fn get_error() -> String {
#[cfg(not(any(feature = "cli")))]
#[cfg(target_os = "linux")]
{
let dtype = crate::platform::linux::get_display_server();