Skip to content
Closed
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
2 changes: 1 addition & 1 deletion examples/connect_via_lower_priority_tokio_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,5 @@ mod background_threadpool {
// for wasm32 target, because tokio isn't compatible with wasm32.
// If you aren't building for wasm32, you don't need that line.
// The two lines below avoid the "'main' function not found" error when building for wasm32 target.
#[cfg(any(target_arch = "wasm32"))]
#[cfg(target_arch = "wasm32")]
fn main() {}
2 changes: 1 addition & 1 deletion src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ enum Inner {
Http(HttpConnector),
#[cfg(feature = "__native-tls")]
NativeTls(HttpConnector, TlsConnector),
#[cfg(any(feature = "__rustls"))]
#[cfg(feature = "__rustls")]
RustlsTls {
http: HttpConnector,
tls: Arc<rustls::ClientConfig>,
Expand Down
4 changes: 2 additions & 2 deletions tests/badssl.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg(not(target_arch = "wasm32"))]
#![cfg(not(feature = "rustls-no-provider"))]

#[cfg(all(feature = "__tls"))]
#[cfg(feature = "__tls")]
#[tokio::test]
async fn test_badssl_modern() {
let text = reqwest::Client::builder()
Expand Down Expand Up @@ -53,7 +53,7 @@ async fn test_badssl_no_built_in_roots() {
assert!(result.is_err());
}

#[cfg(any(feature = "__native-tls"))]
#[cfg(feature = "__native-tls")]
#[tokio::test]
async fn test_badssl_wrong_host() {
let text = reqwest::Client::builder()
Expand Down