mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-15 10:46:41 -04:00
Run cargo fmt
This commit is contained in:
parent
9431ae9474
commit
36c34fcbda
2 changed files with 12 additions and 7 deletions
|
@ -131,8 +131,10 @@ impl SteamOSManager {
|
|||
SystemdUnit::new(self.connection.clone(), "jupiter_2dfan_2dcontrol_2eservice")
|
||||
.await
|
||||
.map_err(anyhow_to_zbus_fdo)?;
|
||||
let active = jupiter_fan_control.active().await
|
||||
.map_err(anyhow_to_zbus_fdo)?;
|
||||
let active = jupiter_fan_control
|
||||
.active()
|
||||
.await
|
||||
.map_err(anyhow_to_zbus_fdo)?;
|
||||
Ok(match active {
|
||||
true => FanControl::OS as u32,
|
||||
false => FanControl::BIOS as u32,
|
||||
|
@ -412,7 +414,8 @@ mod test {
|
|||
.await
|
||||
.unwrap();
|
||||
let manager = SteamOSManager::new(connection.clone()).await.unwrap();
|
||||
connection.object_server()
|
||||
connection
|
||||
.object_server()
|
||||
.at("/com/steampowered/SteamOSManager1", manager)
|
||||
.await
|
||||
.expect("object_server at");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue