fix(admin): clippy collapsible_if -> let-chain
CI / test (push) Successful in 11m44s

This commit is contained in:
2026-06-24 07:02:25 +00:00
parent 4de5628b05
commit e81fa05c40
+3 -3
View File
@@ -175,11 +175,11 @@ async fn update(State(st): State<AppState>, Form(form): Form<ConfigForm>) -> Res
*st.client.write().await = new_client; *st.client.write().await = new_client;
*st.config.write().await = cfg.clone(); *st.config.write().await = cfg.clone();
if let Some(path) = &st.config_path { if let Some(path) = &st.config_path
if let Err(e) = cfg.save(path) { && let Err(e) = cfg.save(path)
{
tracing::error!("Config konnte nicht gespeichert werden: {e}"); tracing::error!("Config konnte nicht gespeichert werden: {e}");
} }
}
Html(render(&cfg, true).into_string()).into_response() Html(render(&cfg, true).into_string()).into_response()
} }