chore: set Rust MSRV to 1.88

This commit is contained in:
Yuri Karamian
2026-08-17 21:15:11 +02:00
parent dd748776b2
commit 1bd4cd8138
6 changed files with 22 additions and 13 deletions
+5 -4
View File
@@ -141,11 +141,12 @@ fn image_client(host: &str, addresses: &[SocketAddr]) -> Result<Client, ProxyErr
Client::builder()
.timeout(Duration::from_secs(30))
.redirect(Policy::custom(move |attempt| {
let redirected_elsewhere = match attempt.url().host_str() {
Some(host) => normalized_host(host) != redirect_host,
None => true,
};
if attempt.previous().len() >= 5
|| attempt
.url()
.host_str()
.map_or(true, |host| normalized_host(host) != redirect_host)
|| redirected_elsewhere
|| validate_url(attempt.url().as_str()).is_err()
{
attempt.stop()