Skip to content

Commit

Permalink
Remove unused error variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Apr 9, 2022
1 parent 57bea10 commit 3c62d1a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use std::{error::Error, fmt::Debug};
/// Newtype wrapper around `Report` which implements `IntoResponse`.
pub enum InternalError {
Internal(Report),
NotFound,
Unauthorised,
}

Expand All @@ -36,7 +35,6 @@ impl IntoResponse for InternalError {
fn into_response(self) -> Response {
match self {
Self::Internal(report) => internal_error_response(report),
Self::NotFound => StatusCode::NOT_FOUND.into_response(),
Self::Unauthorised => StatusCode::UNAUTHORIZED.into_response(),
}
}
Expand Down

0 comments on commit 3c62d1a

Please sign in to comment.