Skip to content

Commit ef2768a

Browse files
authored
fix: correctly import TokioIo on Windows (#2896)
1 parent 1bf6441 commit ef2768a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use http::uri::Scheme;
55
use http::Uri;
66
use hyper::rt::{Read, ReadBufCursor, Write};
77
use hyper_util::client::legacy::connect::{Connected, Connection};
8-
#[cfg(any(feature = "socks", feature = "__tls", unix))]
8+
#[cfg(any(feature = "socks", feature = "__tls", unix, target_os = "windows"))]
99
use hyper_util::rt::TokioIo;
1010
#[cfg(feature = "default-tls")]
1111
use native_tls_crate::{TlsConnector, TlsConnectorBuilder};

0 commit comments

Comments
 (0)