Skip to content

Commit

Permalink
docs(client): fix missing feature attrs in another doctest
Browse files Browse the repository at this point in the history
when testing my fix for #2687, I noticed that this doctest has the same issue,
so here's another fix.
  • Loading branch information
whentze authored and seanmonstar committed Nov 8, 2021
1 parent 3221f57 commit 913be88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/mod.rs
Expand Up @@ -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'
Expand Down

1 comment on commit 913be88

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'end_to_end'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 913be88 Previous: 8062714 Ratio
http2_parallel_x10_req_10kb_100_chunks_adaptive_window 22338007 ns/iter (± 13648623) 9401445 ns/iter (± 9092228) 2.38

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.