From 84a7d1d7c870a28c0fa20abef26c73412eeccac5 Mon Sep 17 00:00:00 2001 From: Simon Bihel Date: Fri, 2 Feb 2024 10:36:00 +0000 Subject: [PATCH] Fix Clippy warning --- src/oidc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidc.rs b/src/oidc.rs index 734dfd1..7ec509e 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -630,7 +630,7 @@ pub async fn sign_in( .map_err(|e| anyhow!("Failed message verification: {}", e))?; let domain = params.redirect_uri.url(); - if let Some(r) = siwe_cookie.message.resources.get(0) { + if let Some(r) = siwe_cookie.message.resources.first() { if *domain != Url::from_str(r.as_ref()).unwrap() { return Err(anyhow!("Conflicting domains in message and redirect").into()); }