chore: New clippy lints (#6568)

This commit is contained in:
Hocuri
2025-02-24 15:50:38 +01:00
committed by GitHub
parent fbf3ff0112
commit 7b3a1b88e6
4 changed files with 6 additions and 4 deletions

View File

@@ -253,7 +253,7 @@ async fn fetch_url(context: &Context, original_url: &str) -> Result<Response> {
.headers()
.get_all("location")
.iter()
.last()
.next_back()
.ok_or_else(|| anyhow!("Redirection doesn't have a target location"))?
.to_str()?;
info!(context, "Following redirect to {}", header);