File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,16 @@ impl<E: Send + std::fmt::Debug> std::fmt::Debug for HttpsConnectorError<E> {
1212 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
1313 match self {
1414 HttpsConnectorError :: ForceHttpsButUriNotHttps => {
15- write ! ( f, "HttpsConnectorError::ForceHttpsButUriNotHttps" )
16- }
17- HttpsConnectorError :: HttpConnector ( err) => {
18- write ! ( f, "HttpsConnectorError::HttpConnector({:?})" , err)
19- }
20- HttpsConnectorError :: NativeTls ( err) => {
21- write ! ( f, "HttpsConnectorError::NativeTls({:?})" , err)
15+ f. write_str ( "HttpsConnectorError::ForceHttpsButUriNotHttps" )
2216 }
17+ HttpsConnectorError :: HttpConnector ( err) => f
18+ . debug_tuple ( "HttpsConnectorError::HttpConnector" )
19+ . field ( err)
20+ . finish ( ) ,
21+ HttpsConnectorError :: NativeTls ( err) => f
22+ . debug_tuple ( "HttpsConnectorError::NativeTls" )
23+ . field ( err)
24+ . finish ( ) ,
2325 }
2426 }
2527}
You can’t perform that action at this time.
0 commit comments