diff --git a/Cargo.lock b/Cargo.lock index 1ceaa17034..70e4c2b7ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1462,9 +1462,9 @@ checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" [[package]] name = "openssl-src" -version = "300.5.5+3.5.5" +version = "300.5.4+3.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f1787d533e03597a7934fd0a765f0d28e94ecc5fb7789f8053b1e699a56f709" +checksum = "a507b3792995dae9b0df8a1c1e3771e8418b7c2d9f0baeba32e6fe8b06c7cb72" dependencies = [ "cc", ] diff --git a/src/download/mod.rs b/src/download/mod.rs index 37ae9b32d4..2fa0bd30c9 100644 --- a/src/download/mod.rs +++ b/src/download/mod.rs @@ -541,10 +541,11 @@ mod curl { #[cfg(any(feature = "reqwest-rustls-tls", feature = "reqwest-native-tls"))] mod reqwest_be { - use std::io; + #[cfg(feature = "reqwest-rustls-tls")] + use std::sync::Arc; #[cfg(any(feature = "reqwest-rustls-tls", feature = "reqwest-native-tls"))] - use std::sync::{Arc, OnceLock}; - use std::time::Duration; + use std::sync::OnceLock; + use std::{io, time::Duration}; #[cfg(all(feature = "reqwest-rustls-tls", not(target_os = "android")))] use crate::anchors::RUSTUP_TRUST_ANCHORS;