mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 18:02:00 -04:00
systemd: Move dead code warning overrides to be more specific
This commit is contained in:
parent
77975d9308
commit
064207ed76
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,6 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
#![allow(dead_code)]
|
|
||||||
|
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -115,6 +114,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
pub async fn enable(&self) -> Result<bool> {
|
pub async fn enable(&self) -> Result<bool> {
|
||||||
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
||||||
let (_, res) = manager
|
let (_, res) = manager
|
||||||
|
@ -123,6 +123,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
||||||
Ok(!res.is_empty())
|
Ok(!res.is_empty())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
pub async fn disable(&self) -> Result<bool> {
|
pub async fn disable(&self) -> Result<bool> {
|
||||||
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
||||||
let res = manager
|
let res = manager
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue