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 {
186
186
187
187
impl fmt:: Debug for BacktraceSymbol {
188
188
fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
189
- let mut dbg = fmt . debug_map ( ) ;
189
+ write ! ( fmt , "{{ " ) ? ;
190
190
191
191
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) ? ;
193
193
} else {
194
- dbg . entry ( & "fn" , & "<unknown>" ) ;
194
+ write ! ( fmt , "fn: \ " <unknown>\" " ) ? ;
195
195
}
196
196
197
197
if let Some ( fname) = self . filename . as_ref ( ) {
198
- dbg . entry ( & " file", fname) ;
198
+ write ! ( fmt , ", file: {:?} ", fname) ? ;
199
199
}
200
200
201
201
if let Some ( line) = self . lineno . as_ref ( ) {
202
- dbg . entry ( & " line", line) ;
202
+ write ! ( fmt , ", line: {:?} ", line) ? ;
203
203
}
204
204
205
- dbg . finish ( )
205
+ write ! ( fmt , " }}" )
206
206
}
207
207
}
208
208
You can’t perform that action at this time.
0 commit comments