chore: clippy html-router

This commit is contained in:
Per Stark
2025-10-16 20:30:17 +02:00
parent 44e5d8a2fc
commit 99b88c3063
9 changed files with 31 additions and 37 deletions
+5 -8
View File
@@ -27,14 +27,11 @@ pub async fn show_signin_form(
if auth.is_authenticated() {
return Ok(TemplateResponse::redirect("/"));
}
match boosted {
true => Ok(TemplateResponse::new_partial(
"auth/signin_base.html",
"body",
(),
)),
false => Ok(TemplateResponse::new_template("auth/signin_base.html", ())),
}
if boosted { Ok(TemplateResponse::new_partial(
"auth/signin_base.html",
"body",
(),
)) } else { Ok(TemplateResponse::new_template("auth/signin_base.html", ())) }
}
pub async fn authenticate_user(