mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 08:00:07 +01:00
fix: clippy warning (rust 1.68)
This commit is contained in:
parent
6dfc895876
commit
8f55bf9d3e
1 changed files with 2 additions and 4 deletions
|
|
@ -80,7 +80,7 @@ fn response_500() -> Response<BoxBody> {
|
|||
/// (https://datatracker.ietf.org/doc/html/rfc6750#section-3.1)
|
||||
impl IntoResponse for AuthError {
|
||||
fn into_response(self) -> Response {
|
||||
let resp = match self {
|
||||
match self {
|
||||
AuthError::JwksRefreshError(err) => {
|
||||
tracing::error!("AuthErrors::JwksRefreshError: {}", err);
|
||||
response_500()
|
||||
|
|
@ -119,8 +119,6 @@ impl IntoResponse for AuthError {
|
|||
debug!("AuthErrors::InvalidClaims");
|
||||
response_wwwauth(StatusCode::FORBIDDEN, "error=\"insufficient_scope\"")
|
||||
}
|
||||
};
|
||||
|
||||
resp
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue