Skip to content

Commit 2a83c01

Browse files
committed
fix doctests without runtime,tcp features
1 parent cdaa3bf commit 2a83c01

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/body/to_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use super::HttpBody;
1717
/// # Example
1818
///
1919
/// ```
20-
/// # #[cfg(all(feature = "client", any(feature = "http1", feature = "http2")))]
20+
/// # #[cfg(all(feature = "client", feature = "tcp", any(feature = "http1", feature = "http2")))]
2121
/// # async fn doc() -> hyper::Result<()> {
2222
/// use hyper::{body::HttpBody};
2323
///

src/server/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
//! use std::net::SocketAddr;
9292
//! use hyper::{Body, Request, Response, Server};
9393
//! use hyper::service::{make_service_fn, service_fn};
94+
//! # #[cfg(feature = "runtime")]
9495
//! use hyper::server::conn::AddrStream;
9596
//!
9697
//! #[derive(Clone)]

0 commit comments

Comments
 (0)