chore: clippy helps out

This commit is contained in:
Per Stark
2025-09-06 21:00:39 +02:00
parent 153efd1a98
commit 69954cf78e
9 changed files with 28 additions and 27 deletions

View File

@@ -188,7 +188,7 @@ where
if is_htmx {
(StatusCode::OK, [(axum_htmx::HX_REDIRECT, path)], "").into_response()
} else {
Redirect::to(&path).into_response()
Redirect::to(path).into_response()
}
}
}

View File

@@ -83,7 +83,7 @@ pub async fn process_ingress_form(
error: String,
}
if input.content.as_ref().map_or(true, |c| c.len() < 2) && input.files.is_empty() {
if input.content.as_ref().is_none_or(|c| c.len() < 2) && input.files.is_empty() {
return Ok(TemplateResponse::new_template(
"index/signed_in/ingress_form.html",
IngressFormData {