@@ -101,12 +101,13 @@ impl Client<(), ()> {
101
101
/// # Example
102
102
///
103
103
/// ```
104
- /// # #[cfg(feature = "runtime")]
104
+ /// # #[cfg(feature = "runtime")]
105
105
/// # fn run () {
106
106
/// use std::time::Duration;
107
107
/// use hyper::Client;
108
+ /// use hyper_util::rt::TokioExecutor;
108
109
///
109
- /// let client = Client::builder()
110
+ /// let client = Client::builder(TokioExecutor::new() )
110
111
/// .pool_idle_timeout(Duration::from_secs(30))
111
112
/// .http2_only(true)
112
113
/// .build_http();
@@ -141,7 +142,7 @@ where
141
142
/// # Example
142
143
///
143
144
/// ```
144
- /// # #[cfg(feature = "runtime")]
145
+ /// # #[cfg(feature = "runtime")]
145
146
/// # fn run () {
146
147
/// use hyper::{Client, Uri};
147
148
///
@@ -170,7 +171,7 @@ where
170
171
/// # Example
171
172
///
172
173
/// ```
173
- /// # #[cfg(feature = "runtime")]
174
+ /// # #[cfg(feature = "runtime")]
174
175
/// # fn run () {
175
176
/// use hyper::{Method, Client, Request};
176
177
/// use http_body_util::Full;
@@ -894,12 +895,13 @@ fn is_schema_secure(uri: &Uri) -> bool {
894
895
/// # Example
895
896
///
896
897
/// ```
897
- /// # #[cfg(feature = "runtime")]
898
+ /// # #[cfg(feature = "runtime")]
898
899
/// # fn run () {
899
900
/// use std::time::Duration;
900
901
/// use hyper::Client;
902
+ /// use hyper_util::rt::TokioExecutor;
901
903
///
902
- /// let client = Client::builder()
904
+ /// let client = Client::builder(TokioExecutor::new() )
903
905
/// .pool_idle_timeout(Duration::from_secs(30))
904
906
/// .http2_only(true)
905
907
/// .build_http();
0 commit comments