Skip to content

Commit

Permalink
docs(client): Add tcp feature for Client::new docs
Browse files Browse the repository at this point in the history
added cfg attr to denote required tcp feature in docs for Client::new method

Closes: #2759
  • Loading branch information
ilyatrefilov authored and seanmonstar committed Feb 15, 2022
1 parent c734b79 commit 4fcfe1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/client.rs
Expand Up @@ -59,6 +59,7 @@ impl Client<HttpConnector, Body> {
/// The default connector does **not** handle TLS. Speaking to `https`
/// destinations will require [configuring a connector that implements
/// TLS](https://hyper.rs/guides/client/configuration).
#[cfg_attr(docsrs, doc(cfg(feature = "tcp")))]
#[inline]
pub fn new() -> Client<HttpConnector, Body> {
Builder::default().build_http()
Expand Down

0 comments on commit 4fcfe1f

Please sign in to comment.