File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -376,10 +376,10 @@ impl<'a> fmt::Display for SymbolName<'a> {
376376 // This may fail to print if the demangled symbol isn't actually
377377 // valid, so handle the error here gracefully by not propagating
378378 // it outwards.
379- if let Some ( ref cpp) = self . cpp_demangled . 0 {
380- if let Ok ( s) = cpp. demangle ( ) {
381- return s . fmt ( f ) ;
382- }
379+ if let Some ( ref cpp) = self . cpp_demangled . 0
380+ && let Ok ( s) = cpp. demangle ( )
381+ {
382+ return s . fmt ( f ) ;
383383 }
384384 }
385385
@@ -398,10 +398,10 @@ impl<'a> fmt::Debug for SymbolName<'a> {
398398 // This may fail to print if the demangled symbol isn't actually
399399 // valid, so handle the error here gracefully by not propagating
400400 // it outwards.
401- if let Some ( ref cpp) = self . cpp_demangled . 0 {
402- if let Ok ( s) = cpp. demangle ( ) {
403- return s . fmt ( f ) ;
404- }
401+ if let Some ( ref cpp) = self . cpp_demangled . 0
402+ && let Ok ( s) = cpp. demangle ( )
403+ {
404+ return s . fmt ( f ) ;
405405 }
406406 }
407407
You can’t perform that action at this time.
0 commit comments