remove unintended export of private try_ macro

This commit is contained in:
Sean McArthur
2017-05-18 09:19:12 -07:00
parent bafcd7ae6f
commit 5a078cd1be

View File

@@ -185,6 +185,25 @@ 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]
fn test_error_get_ref_downcasts() {
let err: Error = from(::hyper::Error::Status);