mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-12 09:22:26 -04:00
Run cargo fmt
This commit is contained in:
parent
9431ae9474
commit
36c34fcbda
2 changed files with 12 additions and 7 deletions
10
src/wifi.rs
10
src/wifi.rs
|
@ -143,13 +143,15 @@ pub async fn setup_iwd_config(want_override: bool) -> std::io::Result<()> {
|
|||
async fn restart_iwd(connection: Connection) -> Result<()> {
|
||||
// First reload systemd since we modified the config most likely
|
||||
// otherwise we wouldn't be restarting iwd.
|
||||
daemon_reload(&connection).await.inspect_err(|message|
|
||||
error!("restart_iwd: reload systemd got an error: {message}"))?;
|
||||
daemon_reload(&connection)
|
||||
.await
|
||||
.inspect_err(|message| error!("restart_iwd: reload systemd got an error: {message}"))?;
|
||||
|
||||
// worked, now restart iwd
|
||||
let unit = SystemdUnit::new(connection, "iwd_2eservice").await?;
|
||||
unit.restart().await.inspect_err(|message|
|
||||
error!("restart_iwd: restart unit got an error: {message}"))
|
||||
unit.restart()
|
||||
.await
|
||||
.inspect_err(|message| error!("restart_iwd: restart unit got an error: {message}"))
|
||||
}
|
||||
|
||||
async fn stop_tracing() -> Result<()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue