@@ -16,7 +16,8 @@ pub struct BacktraceFmt<'a, 'b> {
1616 fmt : & ' a mut fmt:: Formatter < ' b > ,
1717 frame_index : usize ,
1818 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 ) ,
2021}
2122
2223/// The styles of printing that we can print
@@ -41,7 +42,8 @@ impl<'a, 'b> BacktraceFmt<'a, 'b> {
4142 pub fn new (
4243 fmt : & ' a mut fmt:: Formatter < ' b > ,
4344 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 ) ,
4547 ) -> Self {
4648 BacktraceFmt {
4749 fmt,
@@ -160,8 +162,8 @@ impl BacktraceFrameFmt<'_, '_, '_> {
160162 pub fn print_raw (
161163 & mut self ,
162164 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 < ' _ > > ,
165167 lineno : Option < u32 > ,
166168 ) -> fmt:: Result {
167169 // Fuchsia is unable to symbolize within a process so it has a special
@@ -180,8 +182,8 @@ impl BacktraceFrameFmt<'_, '_, '_> {
180182 fn print_raw_generic (
181183 & mut self ,
182184 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 < ' _ > > ,
185187 lineno : Option < u32 > ,
186188 ) -> fmt:: Result {
187189 // No need to print "null" frames, it basically just means that the
@@ -234,7 +236,7 @@ impl BacktraceFrameFmt<'_, '_, '_> {
234236 Ok ( ( ) )
235237 }
236238
237- fn print_fileline ( & mut self , file : BytesOrWideString , line : u32 ) -> fmt:: Result {
239+ fn print_fileline ( & mut self , file : BytesOrWideString < ' _ > , line : u32 ) -> fmt:: Result {
238240 // Filename/line are printed on lines under the symbol name, so print
239241 // some appropriate whitespace to sort of right-align ourselves.
240242 if let PrintFmt :: Full = self . fmt . format {
0 commit comments