Skip to content

Commit 1a40bed

Browse files
authored
Fix reference to Instant in socks feature. (fortanix#88)
The reference to time::Instant under feature = socks-proxy was incorrectly scoped, and should have been just Instant. This breaks the doc build and any builds that use feature = socks-proxy.
1 parent a85f4c0 commit 1a40bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ fn socks5_local_nslookup(hostname: &str, port: u16) -> Result<TargetAddr, std::i
467467
#[cfg(feature = "socks-proxy")]
468468
fn connect_socks5(
469469
proxy: Proxy,
470-
deadline: Option<time::Instant>,
470+
deadline: Option<Instant>,
471471
proxy_addr: SocketAddr,
472472
host: &str,
473473
port: u16,

0 commit comments

Comments
 (0)