chore: Cleanup

This commit is contained in:
Ginger committed 2026-03-18 12:42:55 -04:00
1 parent ffa3c53847
commit 8b726a9c94
4 files changed
+6 -10

No files matched your search

+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()