Skip to content

Commit

Permalink
language server checks
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jun 15, 2024
1 parent 6de6877 commit 0ef197b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ pub enum ServerError {

#[display(fmt = "bad request")]
BadClientData,

#[display(fmt = "unauthorized")]
Unauthorized,

#[display(fmt = "forbidden")]
Forbidden,
}

impl Default for ListRequest {
Expand All @@ -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,
}
}
}
Expand Down

0 comments on commit 0ef197b

Please sign in to comment.