@@ -12,8 +12,8 @@ extern "C" {
12
12
// callback on each call. 'size' gives the size of the dl_phdr_info.
13
13
#[ allow( improper_ctypes) ]
14
14
fn dl_iterate_phdr (
15
- f : extern "C" fn ( info : & dl_phdr_info , size : usize , data : & mut DsoPrinter ) -> i32 ,
16
- data : & mut DsoPrinter ,
15
+ f : extern "C" fn ( info : & dl_phdr_info , size : usize , data : & mut DsoPrinter < ' _ , ' _ > ) -> i32 ,
16
+ data : & mut DsoPrinter < ' _ , ' _ > ,
17
17
) -> i32 ;
18
18
}
19
19
@@ -224,7 +224,7 @@ const PERM_W: u32 = 0b00000010;
224
224
const PERM_R : u32 = 0b00000100 ;
225
225
226
226
impl core:: fmt:: Display for Perm {
227
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
227
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
228
228
let v = self . 0 ;
229
229
if v & PERM_R != 0 {
230
230
f. write_char ( 'r' ) ?
@@ -310,7 +310,7 @@ struct HexSlice<'a> {
310
310
}
311
311
312
312
impl fmt:: Display for HexSlice < ' _ > {
313
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
313
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
314
314
for byte in self . bytes {
315
315
write ! ( f, "{:02x}" , byte) ?;
316
316
}
@@ -349,8 +349,12 @@ enum Error {
349
349
/// # Arguments
350
350
///
351
351
/// * `visitor` - A DsoPrinter that will have one of eats methods called foreach DSO.
352
- fn for_each_dso ( mut visitor : & mut DsoPrinter ) {
353
- extern "C" fn callback ( info : & dl_phdr_info , _size : usize , visitor : & mut DsoPrinter ) -> i32 {
352
+ fn for_each_dso ( mut visitor : & mut DsoPrinter < ' _ , ' _ > ) {
353
+ extern "C" fn callback (
354
+ info : & dl_phdr_info ,
355
+ _size : usize ,
356
+ visitor : & mut DsoPrinter < ' _ , ' _ > ,
357
+ ) -> i32 {
354
358
// dl_iterate_phdr ensures that info.name will point to a valid
355
359
// location.
356
360
let name_len = unsafe { libc:: strlen ( info. name ) } ;
0 commit comments