From 913be88f7155ea4695c7f8098d968bf1f340f8be Mon Sep 17 00:00:00 2001 From: muvlon Date: Sat, 6 Nov 2021 19:52:36 +0100 Subject: [PATCH] docs(client): fix missing feature attrs in another doctest when testing my fix for #2687, I noticed that this doctest has the same issue, so here's another fix. --- src/client/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index e45608cd4c..734bda8819 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -27,10 +27,10 @@ //! [full client example](https://github.com/hyperium/hyper/blob/master/examples/client.rs). //! //! ``` +//! # #[cfg(all(feature = "tcp", feature = "client", any(feature = "http1", feature = "http2")))] +//! # async fn fetch_httpbin() -> hyper::Result<()> { //! use hyper::{body::HttpBody as _, Client, Uri}; //! -//! # #[cfg(feature = "tcp")] -//! # async fn fetch_httpbin() -> hyper::Result<()> { //! let client = Client::new(); //! //! // Make a GET /ip to 'http://httpbin.org'