@@ -16,7 +16,8 @@ pub struct BacktraceFmt<'a, 'b> {
16
16
fmt : & ' a mut fmt:: Formatter < ' b > ,
17
17
frame_index : usize ,
18
18
format : PrintFmt ,
19
- print_path : & ' a mut ( dyn FnMut ( & mut fmt:: Formatter , BytesOrWideString ) -> fmt:: Result + ' b ) ,
19
+ print_path :
20
+ & ' a mut ( dyn FnMut ( & mut fmt:: Formatter < ' _ > , BytesOrWideString < ' _ > ) -> fmt:: Result + ' b ) ,
20
21
}
21
22
22
23
/// The styles of printing that we can print
@@ -41,7 +42,8 @@ impl<'a, 'b> BacktraceFmt<'a, 'b> {
41
42
pub fn new (
42
43
fmt : & ' a mut fmt:: Formatter < ' b > ,
43
44
format : PrintFmt ,
44
- print_path : & ' a mut ( dyn FnMut ( & mut fmt:: Formatter , BytesOrWideString ) -> fmt:: Result + ' b ) ,
45
+ print_path : & ' a mut ( dyn FnMut ( & mut fmt:: Formatter < ' _ > , BytesOrWideString < ' _ > ) -> fmt:: Result
46
+ + ' b ) ,
45
47
) -> Self {
46
48
BacktraceFmt {
47
49
fmt,
@@ -160,8 +162,8 @@ impl BacktraceFrameFmt<'_, '_, '_> {
160
162
pub fn print_raw (
161
163
& mut self ,
162
164
frame_ip : * mut c_void ,
163
- symbol_name : Option < crate :: SymbolName > ,
164
- filename : Option < BytesOrWideString > ,
165
+ symbol_name : Option < crate :: SymbolName < ' _ > > ,
166
+ filename : Option < BytesOrWideString < ' _ > > ,
165
167
lineno : Option < u32 > ,
166
168
) -> fmt:: Result {
167
169
// Fuchsia is unable to symbolize within a process so it has a special
@@ -180,8 +182,8 @@ impl BacktraceFrameFmt<'_, '_, '_> {
180
182
fn print_raw_generic (
181
183
& mut self ,
182
184
mut frame_ip : * mut c_void ,
183
- symbol_name : Option < crate :: SymbolName > ,
184
- filename : Option < BytesOrWideString > ,
185
+ symbol_name : Option < crate :: SymbolName < ' _ > > ,
186
+ filename : Option < BytesOrWideString < ' _ > > ,
185
187
lineno : Option < u32 > ,
186
188
) -> fmt:: Result {
187
189
// No need to print "null" frames, it basically just means that the
@@ -234,7 +236,7 @@ impl BacktraceFrameFmt<'_, '_, '_> {
234
236
Ok ( ( ) )
235
237
}
236
238
237
- fn print_fileline ( & mut self , file : BytesOrWideString , line : u32 ) -> fmt:: Result {
239
+ fn print_fileline ( & mut self , file : BytesOrWideString < ' _ > , line : u32 ) -> fmt:: Result {
238
240
// Filename/line are printed on lines under the symbol name, so print
239
241
// some appropriate whitespace to sort of right-align ourselves.
240
242
if let PrintFmt :: Full = self . fmt . format {
0 commit comments