From 0fc287c7684755a097726a40bee8f1861ec891d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=BCde?= Date: Fri, 15 May 2026 02:58:35 +0200 Subject: [PATCH] fmt --- hive-c0re/src/dashboard.rs | 5 +---- hive-c0re/src/lifecycle.rs | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hive-c0re/src/dashboard.rs b/hive-c0re/src/dashboard.rs index aeebd62..beca307 100644 --- a/hive-c0re/src/dashboard.rs +++ b/hive-c0re/src/dashboard.rs @@ -125,10 +125,7 @@ async fn post_deny(State(state): State, AxumPath(id): AxumPath) - } } -async fn post_destroy( - State(state): State, - AxumPath(name): AxumPath, -) -> Response { +async fn post_destroy(State(state): State, AxumPath(name): AxumPath) -> Response { match actions::destroy(&state.coord, &name).await { Ok(()) => Redirect::to("/").into_response(), Err(e) => error_response(&format!("destroy {name} failed: {e:#}")), diff --git a/hive-c0re/src/lifecycle.rs b/hive-c0re/src/lifecycle.rs index 7577bb4..eb4738c 100644 --- a/hive-c0re/src/lifecycle.rs +++ b/hive-c0re/src/lifecycle.rs @@ -98,8 +98,7 @@ pub async fn destroy(name: &str) -> Result<()> { } let dropin_dir = format!("/run/systemd/system/container@{container}.service.d"); if std::path::Path::new(&dropin_dir).exists() { - std::fs::remove_dir_all(&dropin_dir) - .with_context(|| format!("remove {dropin_dir}"))?; + std::fs::remove_dir_all(&dropin_dir).with_context(|| format!("remove {dropin_dir}"))?; } Ok(()) }