Skip to content

Commit 4fcfe1f

Browse files
ilyatrefilovseanmonstar
authored andcommitted
docs(client): Add tcp feature for Client::new docs
added cfg attr to denote required tcp feature in docs for Client::new method Closes: #2759
1 parent c734b79 commit 4fcfe1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/client.rs

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ impl Client<HttpConnector, Body> {
5959
/// The default connector does **not** handle TLS. Speaking to `https`
6060
/// destinations will require [configuring a connector that implements
6161
/// TLS](https://hyper.rs/guides/client/configuration).
62+
#[cfg_attr(docsrs, doc(cfg(feature = "tcp")))]
6263
#[inline]
6364
pub fn new() -> Client<HttpConnector, Body> {
6465
Builder::default().build_http()

0 commit comments

Comments
 (0)