From 68547a0af66222960eea6d649bf94497c11df246 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 26 Feb 2024 11:10:56 -0500 Subject: [PATCH] chore: blocking doesn't need multi-threaded (#2146) --- Cargo.toml | 2 +- src/blocking/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6d681e6d5..078a808c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ rustls-tls-manual-roots = ["__rustls"] rustls-tls-webpki-roots = ["webpki-roots", "__rustls"] rustls-tls-native-roots = ["rustls-native-certs", "__rustls"] -blocking = ["futures-util/io", "tokio/rt-multi-thread", "tokio/sync"] +blocking = ["futures-util/io", "tokio/sync"] cookies = ["cookie_crate", "cookie_store"] diff --git a/src/blocking/client.rs b/src/blocking/client.rs index 195081391..689e6a0d8 100644 --- a/src/blocking/client.rs +++ b/src/blocking/client.rs @@ -1172,7 +1172,7 @@ impl Default for Timeout { } } -pub(crate) struct KeepCoreThreadAlive(Option>); +pub(crate) struct KeepCoreThreadAlive(#[allow(unused)] Option>); impl KeepCoreThreadAlive { pub(crate) fn empty() -> KeepCoreThreadAlive {