remove unintended export of private try_ macro

This commit is contained in:
Sean McArthur
2017-05-18 09:19:12 -07:00
parent eae8d32b7c
commit 57359a6e2f
2 changed files with 22 additions and 21 deletions

View File

@@ -185,26 +185,6 @@ pub fn too_many_redirects(url: Url) -> Error {
}
}
#[macro_export]
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);