Skip to content

Commit 09156a7

Browse files
committed
refactor(lib): remove build script features since minimum version is higher
1 parent b0c1320 commit 09156a7

File tree

6 files changed

+6
-47
lines changed

6 files changed

+6
-47
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ serde = "1.0"
4949
serde_derive = "1.0"
5050
serde_json = "1.0"
5151

52-
[build-dependencies]
53-
rustc_version = "0.2.3"
54-
5552
[features]
5653
default = [
5754
"__internal_flaky_tests",

build.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/client/conn.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ where
240240
}
241241
}
242242

243-
pub(crate) fn send_request_retryable(&mut self, req: Request<B>) -> impl_trait!(ty: Future<Item = Response<Body>, Error = (::Error, Option<Request<B>>)> + Send)
243+
pub(crate) fn send_request_retryable(&mut self, req: Request<B>) -> impl Future<Item = Response<Body>, Error = (::Error, Option<Request<B>>)>
244244
where
245245
B: Send,
246246
{
247-
impl_trait!(e: match self.dispatch.try_send(req) {
247+
match self.dispatch.try_send(req) {
248248
Ok(rx) => {
249249
Either::A(rx.then(move |res| {
250250
match res {
@@ -260,7 +260,7 @@ where
260260
let err = ::Error::new_canceled(Some("connection was not ready"));
261261
Either::B(future::err((err, Some(req))))
262262
}
263-
})
263+
}
264264
}
265265
}
266266

@@ -300,11 +300,11 @@ impl<B> Http2SendRequest<B>
300300
where
301301
B: Payload + 'static,
302302
{
303-
pub(super) fn send_request_retryable(&mut self, req: Request<B>) -> impl_trait!(ty: Future<Item=Response<Body>, Error=(::Error, Option<Request<B>>)> + Send)
303+
pub(super) fn send_request_retryable(&mut self, req: Request<B>) -> impl Future<Item=Response<Body>, Error=(::Error, Option<Request<B>>)>
304304
where
305305
B: Send,
306306
{
307-
impl_trait!(e: match self.dispatch.try_send(req) {
307+
match self.dispatch.try_send(req) {
308308
Ok(rx) => {
309309
Either::A(rx.then(move |res| {
310310
match res {
@@ -320,7 +320,7 @@ where
320320
let err = ::Error::new_canceled(Some("connection was not ready"));
321321
Either::B(future::err((err, Some(req))))
322322
}
323-
})
323+
}
324324
}
325325
}
326326

src/common/macros.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/common/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ pub(crate) mod drain;
33
mod exec;
44
pub(crate) mod io;
55
mod lazy;
6-
#[macro_use]
7-
mod macros;
86
mod never;
97

108
pub(crate) use self::buf::StaticBuf;

src/headers.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use bytes::BytesMut;
22
use http::HeaderMap;
33
use http::header::{CONTENT_LENGTH, TRANSFER_ENCODING};
44
use http::header::{HeaderValue, OccupiedEntry, ValueIter};
5-
#[cfg(not(__hyper_inherent_ascii))]
6-
use std::ascii::AsciiExt;
75

86
pub fn connection_keep_alive(value: &HeaderValue) -> bool {
97
connection_has(value, "keep-alive")

0 commit comments

Comments
 (0)