Merge pull request #101 from little-dude/fix-nightly

Fix build for nightly-2017-05-22
This commit is contained in:
Sean McArthur
2017-05-23 23:25:53 -05:00
committed by GitHub

View File

@@ -185,25 +185,6 @@ pub fn too_many_redirects(url: Url) -> Error {
} }
} }
macro_rules! try_ {
($e:expr) => (
match $e {
Ok(v) => v,
Err(err) => {
return Err(::Error::from(::error::InternalFrom(err, None)));
}
}
);
($e:expr, $url:expr) => (
match $e {
Ok(v) => v,
Err(err) => {
return Err(::Error::from(::error::InternalFrom(err, Some($url.clone()))));
}
}
)
}
#[test] #[test]
fn test_error_get_ref_downcasts() { fn test_error_get_ref_downcasts() {
let err: Error = from(::hyper::Error::Status); let err: Error = from(::hyper::Error::Status);