File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -168,11 +168,7 @@ impl fmt::Debug for Backtrace {
168
168
} ;
169
169
capture. resolve ( ) ;
170
170
171
- let frames = if fmt. alternate ( ) {
172
- & capture. frames [ ..]
173
- } else {
174
- & capture. frames [ capture. actual_start ..]
175
- } ;
171
+ let frames = & capture. frames [ capture. actual_start ..] ;
176
172
177
173
write ! ( fmt, "Backtrace " ) ?;
178
174
@@ -195,10 +191,9 @@ impl fmt::Debug for BacktraceSymbol {
195
191
write ! ( fmt, "{{ " ) ?;
196
192
197
193
if let Some ( fn_name) = self . name . as_ref ( ) . map ( |b| backtrace:: SymbolName :: new ( b) ) {
198
- write ! ( fmt, "fn: " ) ?;
199
- fmt:: Display :: fmt ( & fn_name, fmt) ?;
194
+ write ! ( fmt, "fn: \" {}\" " , fn_name) ?;
200
195
} else {
201
- write ! ( fmt, "fn: <unknown>" ) ?;
196
+ write ! ( fmt, "fn: \" <unknown>\" " ) ?;
202
197
}
203
198
204
199
if let Some ( fname) = self . filename . as_ref ( ) {
@@ -221,7 +216,7 @@ impl fmt::Debug for BytesOrWide {
221
216
BytesOrWide :: Bytes ( w) => BytesOrWideString :: Bytes ( w) ,
222
217
BytesOrWide :: Wide ( w) => BytesOrWideString :: Wide ( w) ,
223
218
} ,
224
- if fmt . alternate ( ) { backtrace:: PrintFmt :: Full } else { backtrace :: PrintFmt :: Short } ,
219
+ backtrace:: PrintFmt :: Short ,
225
220
crate :: env:: current_dir ( ) . as_ref ( ) . ok ( ) ,
226
221
)
227
222
}
You can’t perform that action at this time.
0 commit comments