chore: Cleanup

This commit is contained in:
Ginger
2026-03-03 13:35:58 -05:00
parent ffa3c53847
commit 8b726a9c94
4 changed files with 6 additions and 10 deletions
+2 -3
View File
@@ -34,12 +34,11 @@ impl IntoResponse for WebError {
}
let status = match &self {
| Self::ValidationError(_) => StatusCode::BAD_REQUEST,
| Self::BadRequest(_) => StatusCode::BAD_REQUEST,
| Self::ValidationError(_) | Self::BadRequest(_) => StatusCode::BAD_REQUEST,
| _ => StatusCode::INTERNAL_SERVER_ERROR,
};
let template = Error { error: self, status: status.clone() };
let template = Error { error: self, status };
if let Ok(body) = template.render() {
(status, Html(body)).into_response()