Run cargo fmt --all.

Fixes code styling in all source files.
This commit is contained in:
Jeremy Whiting 2023-11-15 16:05:54 -07:00
parent bf3cca29ac
commit 0c4b661d16
2 changed files with 135 additions and 60 deletions

View file

@ -28,21 +28,19 @@ use zbus::{ConnectionBuilder, Result};
pub mod manager;
#[tokio::main]
async fn main() -> Result<()>
{
async fn main() -> Result<()> {
// This daemon is responsible for creating a dbus api that steam client can use to do various OS
// level things. It implements com.steampowered.SteamOSManager1 interface
let manager = manager::SMManager {};
let _system_connection = ConnectionBuilder::system()?
.name("com.steampowered.SteamOSManager1")?
.serve_at("/com/steampowered/SteamOSManager1", manager)?
.build()
.await?;
loop
{
.name("com.steampowered.SteamOSManager1")?
.serve_at("/com/steampowered/SteamOSManager1", manager)?
.build()
.await?;
loop {
std::future::pending::<()>().await;
}
}