From 830b1690ccbb72ae643ca2206bacbee53633b38c Mon Sep 17 00:00:00 2001 From: Doug Date: Tue, 6 May 2025 15:34:37 +0100 Subject: [PATCH] Fix clippy error. --- crates/handlers/src/upstream_oauth2/authorize.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/handlers/src/upstream_oauth2/authorize.rs b/crates/handlers/src/upstream_oauth2/authorize.rs index db4b886e2..e6dec7aef 100644 --- a/crates/handlers/src/upstream_oauth2/authorize.rs +++ b/crates/handlers/src/upstream_oauth2/authorize.rs @@ -94,11 +94,9 @@ pub(crate) async fn get( // Forward the raw login hint upstream for the provider to handle however it // sees fit - if let Some(post_auth_action) = &query.post_auth_action { - if let PostAuthAction::ContinueAuthorizationGrant { id } = post_auth_action { - if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? { - data.login_hint = grant.login_hint; - } + if let Some(PostAuthAction::ContinueAuthorizationGrant { id }) = &query.post_auth_action { + if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? { + data.login_hint = grant.login_hint; } }