Fix import that broke tests on macOS

This commit is contained in:
Federico Terzi 2020-03-17 20:58:01 +01:00
parent f95457f769
commit fd1df63ecd

View File

@ -47,7 +47,6 @@ use crate::package::{PackageManager, InstallResult, UpdateResult, RemoveResult,
use std::sync::atomic::AtomicBool;
use crate::package::git::GitPackageResolver;
use crate::package::zip::ZipPackageResolver;
use crate::sysdaemon::{verify, VerifyResult};
mod ui;
mod edit;
@ -435,6 +434,7 @@ fn start_daemon(config_set: ConfigSet) {
#[cfg(target_os = "linux")]
fn start_daemon(config_set: ConfigSet) {
use std::process::{Command, Stdio};
use crate::sysdaemon::{verify, VerifyResult};
// Check if Systemd is available in the system
let status = Command::new("systemctl")