remove unintended export of private try_ macro
This commit is contained in:
		
							
								
								
									
										19
									
								
								src/error.rs
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								src/error.rs
									
									
									
									
									
								
							| @@ -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] | #[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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user