Fix reference to Instant in socks feature. (#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.
This commit is contained in:
Jacob Hoffman-Andrews
2020-06-24 00:13:12 -07:00
committed by GitHub
parent a85f4c037e
commit 1a40bed7dd

View File

@@ -467,7 +467,7 @@ fn socks5_local_nslookup(hostname: &str, port: u16) -> Result<TargetAddr, std::i
#[cfg(feature = "socks-proxy")]
fn connect_socks5(
proxy: Proxy,
deadline: Option<time::Instant>,
deadline: Option<Instant>,
proxy_addr: SocketAddr,
host: &str,
port: u16,