From 2a029709b81bc8093b70896bdec28e05a5e3f68a Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Sat, 29 Aug 2026 18:05:36 +0200 Subject: [PATCH] Formatted file --- src/error.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index f483aeb..238ddb4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -6,7 +6,7 @@ use reqwest::StatusCode; pub enum AppError { InternalError(String), OpenIdError(String), - Unauthorised + Unauthorised, } impl IntoResponse for AppError { @@ -14,7 +14,10 @@ impl IntoResponse for AppError { let (status, message) = match self { AppError::InternalError(msg) => (StatusCode::INTERNAL_SERVER_ERROR, msg), AppError::OpenIdError(msg) => (StatusCode::UNPROCESSABLE_ENTITY, msg), - AppError::Unauthorised => (StatusCode::UNAUTHORIZED, "Unauthorised (did you login?)".into()) + AppError::Unauthorised => ( + StatusCode::UNAUTHORIZED, + "Unauthorised (did you login?)".into(), + ), }; (status, message).into_response() }