File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ struct Config {
52
52
}
53
53
54
54
/// Client errors
55
- #[ derive( Debug ) ]
56
55
pub struct Error {
57
56
kind : ErrorKind ,
58
57
source : Option < Box < dyn StdError + Send + Sync > > ,
@@ -1566,6 +1565,17 @@ impl fmt::Debug for Builder {
1566
1565
1567
1566
// ==== impl Error ====
1568
1567
1568
+ impl fmt:: Debug for Error {
1569
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1570
+ let mut f = f. debug_tuple ( "hyper_util::client::legacy::Error" ) ;
1571
+ f. field ( & self . kind ) ;
1572
+ if let Some ( ref cause) = self . cause {
1573
+ f. field ( cause) ;
1574
+ }
1575
+ f. finish ( )
1576
+ }
1577
+ }
1578
+
1569
1579
impl fmt:: Display for Error {
1570
1580
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1571
1581
write ! ( f, "client error ({:?})" , self . kind)
You can’t perform that action at this time.
0 commit comments