Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/download/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When looking at the CI logs, I realized that the old version actually has a redundant use std::sync::Arc; on cfg!(feature = "reqwest-native-tls"), so I'm taking this opportunity to clean that up.

#[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;
Expand Down