Skip to content

Commit 0d08bc7

Browse files
fully removes http2_only from tests/client.rs builder macro
I noticed it wasn't being used at all anymore, so i wanted to remove the cruft.
1 parent 1112957 commit 0d08bc7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/client.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ macro_rules! test {
235235
inner: hyper::client::conn::http1::Builder,
236236
set_host: bool,
237237
http09_responses: bool,
238-
http2_only: bool,
239238
}
240239

241240
impl Builder {
@@ -244,7 +243,6 @@ macro_rules! test {
244243
inner: hyper::client::conn::http1::Builder::new(),
245244
set_host: true,
246245
http09_responses: false,
247-
http2_only: false,
248246
}
249247
}
250248

@@ -260,13 +258,6 @@ macro_rules! test {
260258
self.inner.http09_responses(val);
261259
self
262260
}
263-
264-
// #[allow(unused)]
265-
// fn http2_only(&mut self, val: bool) -> &mut Self {
266-
// self.http2_only = val;
267-
// self.inner.http2_only(val);
268-
// self
269-
// }
270261
}
271262

272263
impl std::ops::Deref for Builder {
@@ -292,7 +283,7 @@ macro_rules! test {
292283
return Err(Error::UnsupportedVersion);
293284
}
294285

295-
if req.version() == Version::HTTP_2 && !builder.http2_only {
286+
if req.version() == Version::HTTP_2 {
296287
return Err(Error::UnsupportedVersion);
297288
}
298289

0 commit comments

Comments
 (0)