mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 01:41:59 -04:00
Fix some clippy::pedantic warnings
This commit is contained in:
parent
d3152cb38d
commit
127eab4863
16 changed files with 161 additions and 166 deletions
|
@ -159,9 +159,10 @@ impl FanControl {
|
|||
let jupiter_fan_control =
|
||||
SystemdUnit::new(self.connection.clone(), service).await?;
|
||||
let active = jupiter_fan_control.active().await?;
|
||||
Ok(match active {
|
||||
true => FanControlState::Os,
|
||||
false => FanControlState::Bios,
|
||||
Ok(if active {
|
||||
FanControlState::Os
|
||||
} else {
|
||||
FanControlState::Bios
|
||||
})
|
||||
}
|
||||
Some(ServiceConfig::Script {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue