mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 01:41:59 -04:00
Run cargo fmt --all.
Fixes code styling in all source files.
This commit is contained in:
parent
bf3cca29ac
commit
0c4b661d16
2 changed files with 135 additions and 60 deletions
18
src/main.rs
18
src/main.rs
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue