From 81dd888ec9b675356ad3db1c2d980bb308b73a5a Mon Sep 17 00:00:00 2001 From: r0chd Date: Wed, 9 Sep 2026 00:22:01 +0200 Subject: [PATCH] Fix compilation error when autostart feature is enabled without systemd --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ed08703..20b8651 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,8 +24,9 @@ use std::path::PathBuf; #[cfg(feature = "autostart")] use std::process::{Command, Stdio}; use std::sync::Arc; +use systemd::is_systemd_used; #[cfg(feature = "systemd")] -use systemd::{get_systemd_env, is_systemd_used, spawn_scope}; +use systemd::{get_systemd_env, spawn_scope}; use tokio::signal::unix::{SignalKind, signal}; use tokio::sync::mpsc::{Receiver, Sender}; use tokio::sync::{Mutex, oneshot};