mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
chore: New clippy lints (#6568)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user