File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -186,23 +186,23 @@ impl fmt::Debug for Backtrace {
186186
187187impl fmt:: Debug for BacktraceSymbol {
188188 fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
189- let mut dbg = fmt . debug_map ( ) ;
189+ write ! ( fmt , "{{ " ) ? ;
190190
191191 if let Some ( fn_name) = self . name . as_ref ( ) . map ( |b| backtrace:: SymbolName :: new ( b) ) {
192- dbg . entry ( & "fn" , & format_args ! ( " \" {}\" ", fn_name) ) ;
192+ write ! ( fmt , "fn: \" {:? }\" ", fn_name) ? ;
193193 } else {
194- dbg . entry ( & "fn" , & "<unknown>" ) ;
194+ write ! ( fmt , "fn: \ " <unknown>\" " ) ? ;
195195 }
196196
197197 if let Some ( fname) = self . filename . as_ref ( ) {
198- dbg . entry ( & " file", fname) ;
198+ write ! ( fmt , ", file: {:?} ", fname) ? ;
199199 }
200200
201201 if let Some ( line) = self . lineno . as_ref ( ) {
202- dbg . entry ( & " line", line) ;
202+ write ! ( fmt , ", line: {:?} ", line) ? ;
203203 }
204204
205- dbg . finish ( )
205+ write ! ( fmt , " }}" )
206206 }
207207}
208208
You can’t perform that action at this time.
0 commit comments