diff --git a/src/systemd.rs b/src/systemd.rs index 23ab269..2574b6f 100644 --- a/src/systemd.rs +++ b/src/systemd.rs @@ -4,7 +4,6 @@ * * SPDX-License-Identifier: MIT */ -#![allow(dead_code)] use anyhow::{anyhow, Result}; use std::path::PathBuf; @@ -115,6 +114,7 @@ impl<'dbus> SystemdUnit<'dbus> { Ok(()) } + #[allow(unused)] pub async fn enable(&self) -> Result { let manager = SystemdManagerProxy::new(&self.connection).await?; let (_, res) = manager @@ -123,6 +123,7 @@ impl<'dbus> SystemdUnit<'dbus> { Ok(!res.is_empty()) } + #[allow(unused)] pub async fn disable(&self) -> Result { let manager = SystemdManagerProxy::new(&self.connection).await?; let res = manager