Fix Clippy warning

This commit is contained in:
Simon Bihel 2024-02-02 10:36:00 +00:00
parent bc95ba286b
commit 84a7d1d7c8
No known key found for this signature in database
GPG Key ID: B7013150BEAA28FD

View File

@ -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());
}