remove some noise from Error debug format
This commit is contained in:
		
							
								
								
									
										12
									
								
								src/error.rs
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/error.rs
									
									
									
									
									
								
							| @@ -233,10 +233,16 @@ impl Error { | |||||||
|  |  | ||||||
| impl fmt::Debug for Error { | impl fmt::Debug for Error { | ||||||
|     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||||||
|         f.debug_struct("Error") |         if let Some(ref url) = self.inner.url { | ||||||
|             .field("kind", &self.inner.kind) |             f.debug_tuple("Error") | ||||||
|             .field("url", &self.inner.url) |                 .field(&self.inner.kind) | ||||||
|  |                 .field(url) | ||||||
|                 .finish() |                 .finish() | ||||||
|  |         } else { | ||||||
|  |             f.debug_tuple("Error") | ||||||
|  |                 .field(&self.inner.kind) | ||||||
|  |                 .finish() | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user