@@ -57,7 +57,7 @@ pub enum Symbol<'a> {
57
57
}
58
58
59
59
impl Symbol < ' _ > {
60
- pub fn name ( & self ) -> Option < SymbolName > {
60
+ pub fn name ( & self ) -> Option < SymbolName < ' _ > > {
61
61
let symbol = |ptr : * const c_char | unsafe {
62
62
if ptr. is_null ( ) {
63
63
None
@@ -119,7 +119,7 @@ impl Symbol<'_> {
119
119
}
120
120
}
121
121
122
- pub fn filename_raw ( & self ) -> Option < BytesOrWideString > {
122
+ pub fn filename_raw ( & self ) -> Option < BytesOrWideString < ' _ > > {
123
123
self . filename_bytes ( ) . map ( BytesOrWideString :: Bytes )
124
124
}
125
125
@@ -178,7 +178,7 @@ extern "C" fn syminfo_cb(
178
178
// not debug info, so if that happens we're sure to call the callback with
179
179
// at least one symbol from the `syminfo_cb`.
180
180
unsafe {
181
- let syminfo_state = & mut * ( data as * mut SyminfoState ) ;
181
+ let syminfo_state = & mut * ( data as * mut SyminfoState < ' _ > ) ;
182
182
let mut pcinfo_state = PcinfoState {
183
183
symname,
184
184
called : false ,
@@ -222,7 +222,7 @@ extern "C" fn pcinfo_cb(
222
222
let mut bomb = crate :: Bomb { enabled : true } ;
223
223
224
224
unsafe {
225
- let state = & mut * ( data as * mut PcinfoState ) ;
225
+ let state = & mut * ( data as * mut PcinfoState < ' _ > ) ;
226
226
state. called = true ;
227
227
( state. cb ) ( & super :: Symbol {
228
228
inner : Symbol :: Pcinfo {
@@ -438,7 +438,7 @@ unsafe fn init_state() -> *mut bt::backtrace_state {
438
438
}
439
439
}
440
440
441
- pub unsafe fn resolve ( what : ResolveWhat , cb : & mut dyn FnMut ( & super :: Symbol ) ) {
441
+ pub unsafe fn resolve ( what : ResolveWhat < ' _ > , cb : & mut dyn FnMut ( & super :: Symbol ) ) {
442
442
let symaddr = what. address_or_ip ( ) as usize ;
443
443
444
444
// backtrace errors are currently swept under the rug
0 commit comments