diff --git a/airupfx/airupfx-env/Cargo.toml b/airupfx/airupfx-env/Cargo.toml index 3215924..5abf656 100644 --- a/airupfx/airupfx-env/Cargo.toml +++ b/airupfx/airupfx-env/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] cfg-if = "1" -sysinfo = "0.30" +sysinfo = "0.31" tokio = { workspace = true } [target.'cfg(target_family = "unix")'.dependencies] diff --git a/airupfx/airupfx/src/util.rs b/airupfx/airupfx/src/util.rs index e769724..6cb428d 100644 --- a/airupfx/airupfx/src/util.rs +++ b/airupfx/airupfx/src/util.rs @@ -23,9 +23,8 @@ where if let Err(err) = shell().await { tracing::error!(target: "console", "Failed to start `/bin/sh`: {err}"); } - if let Err(err) = crate::process::reload_image() { - tracing::error!(target: "console", "Failed to reload `airupd` process image: {err}"); - } + let Err(err) = crate::process::reload_image(); + tracing::error!(target: "console", "Failed to reload `airupd` process image: {err}"); } } else { std::process::exit(1);