Skip to content

Commit

Permalink
Fix Clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel committed Feb 2, 2024
1 parent bc95ba2 commit 84a7d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oidc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 84a7d1d

Please sign in to comment.