Skip to content

Commit 8d4ae27

Browse files
committed
refactor(lib): remove build script detecting rust >= 1.34
1 parent c2a5397 commit 8d4ae27

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

Cargo.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include = [
1818
"Cargo.toml",
1919
"LICENSE",
2020
"src/**/*",
21-
"build.rs",
21+
#"build.rs",
2222
]
2323

2424
[dependencies]
@@ -47,9 +47,6 @@ tokio-threadpool = { git = "https://github.com/tokio-rs/tokio", optional = true
4747
tokio-timer = { git = "https://github.com/tokio-rs/tokio", optional = true }
4848
want = { git = "https://github.com/seanmonstar/want", branch = "std-future" }
4949

50-
[build-dependencies]
51-
rustc_version = "0.2"
52-
5350
[dev-dependencies]
5451
#futures-timer = "0.1"
5552
num_cpus = "1.0"

build.rs

-10
This file was deleted.

src/client/connect/mod.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
//! - A default [`HttpConnector`](HttpConnector) that does DNS resolution and
66
//! establishes connections over TCP.
77
//! - The [`Connect`](Connect) trait and related types to build custom connectors.
8+
use std::convert::TryFrom;
89
use std::error::Error as StdError;
910
use std::{fmt, mem};
10-
#[cfg(try_from)] use std::convert::TryFrom;
1111

1212
use bytes::{BufMut, Bytes, BytesMut};
1313
use ::http::{uri, Response, Uri};
@@ -253,7 +253,6 @@ impl Destination {
253253
*/
254254
}
255255

256-
#[cfg(try_from)]
257256
impl TryFrom<Uri> for Destination {
258257
type Error = crate::error::Error;
259258

@@ -538,15 +537,13 @@ mod tests {
538537
assert_eq!(dst.port(), None);
539538
}
540539

541-
#[cfg(try_from)]
542540
#[test]
543541
fn test_try_from_destination() {
544542
let uri: http::Uri = "http://hyper.rs".parse().expect("initial parse");
545543
let result = Destination::try_from(uri);
546544
assert_eq!(result.is_ok(), true);
547545
}
548-
549-
#[cfg(try_from)]
546+
550547
#[test]
551548
fn test_try_from_no_scheme() {
552549
let uri: http::Uri = "hyper.rs".parse().expect("initial parse error");

0 commit comments

Comments
 (0)