From 8f55bf9d3e815b6c2a9cf77c6505d92bcec63631 Mon Sep 17 00:00:00 2001 From: cduvray Date: Wed, 15 Mar 2023 08:13:18 +0100 Subject: [PATCH] fix: clippy warning (rust 1.68) --- jwt-authorizer/src/error.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jwt-authorizer/src/error.rs b/jwt-authorizer/src/error.rs index 1f4a93d..ec14cd0 100644 --- a/jwt-authorizer/src/error.rs +++ b/jwt-authorizer/src/error.rs @@ -80,7 +80,7 @@ fn response_500() -> Response { /// (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 + } } }