From 0ef197b2c67e3fac5140d199d566fed482b3d006 Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Sat, 15 Jun 2024 19:04:22 +0200 Subject: [PATCH] language server checks --- src/routes/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 0df15f7..5b4b71c 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -43,12 +43,6 @@ pub enum ServerError { #[display(fmt = "bad request")] BadClientData, - - #[display(fmt = "unauthorized")] - Unauthorized, - - #[display(fmt = "forbidden")] - Forbidden, } impl Default for ListRequest { @@ -71,8 +65,6 @@ impl error::ResponseError for ServerError { match *self { ServerError::InternalError => StatusCode::INTERNAL_SERVER_ERROR, ServerError::BadClientData => StatusCode::BAD_REQUEST, - ServerError::Unauthorized => StatusCode::UNAUTHORIZED, - ServerError::Forbidden => StatusCode::FORBIDDEN, } } }