@@ -372,15 +372,15 @@ impl<'a> CodegenResult<'a> {
372
372
}
373
373
}
374
374
375
- impl < ' a > ops:: Deref for CodegenResult < ' a > {
375
+ impl ops:: Deref for CodegenResult < ' _ > {
376
376
type Target = Vec < proc_macro2:: TokenStream > ;
377
377
378
378
fn deref ( & self ) -> & Self :: Target {
379
379
& self . items
380
380
}
381
381
}
382
382
383
- impl < ' a > ops:: DerefMut for CodegenResult < ' a > {
383
+ impl ops:: DerefMut for CodegenResult < ' _ > {
384
384
fn deref_mut ( & mut self ) -> & mut Self :: Target {
385
385
& mut self . items
386
386
}
@@ -727,7 +727,7 @@ impl CodeGenerator for Var {
727
727
if let Some ( cstr) = cstr {
728
728
let cstr_ty = quote ! { :: #prefix:: ffi:: CStr } ;
729
729
if rust_features. literal_cstr {
730
- let cstr = proc_macro2:: Literal :: c_string ( & cstr) ;
730
+ let cstr = proc_macro2:: Literal :: c_string ( cstr) ;
731
731
result. push ( quote ! {
732
732
#( #attrs) *
733
733
pub const #canonical_ident: & #cstr_ty = #cstr;
@@ -1165,7 +1165,7 @@ impl<'a> Vtable<'a> {
1165
1165
}
1166
1166
}
1167
1167
1168
- impl < ' a > CodeGenerator for Vtable < ' a > {
1168
+ impl CodeGenerator for Vtable < ' _ > {
1169
1169
type Extra = Item ;
1170
1170
type Return = ( ) ;
1171
1171
@@ -1243,13 +1243,13 @@ impl<'a> CodeGenerator for Vtable<'a> {
1243
1243
}
1244
1244
}
1245
1245
1246
- impl < ' a > ItemCanonicalName for Vtable < ' a > {
1246
+ impl ItemCanonicalName for Vtable < ' _ > {
1247
1247
fn canonical_name ( & self , ctx : & BindgenContext ) -> String {
1248
1248
format ! ( "{}__bindgen_vtable" , self . item_id. canonical_name( ctx) )
1249
1249
}
1250
1250
}
1251
1251
1252
- impl < ' a > TryToRustTy for Vtable < ' a > {
1252
+ impl TryToRustTy for Vtable < ' _ > {
1253
1253
type Extra = ( ) ;
1254
1254
1255
1255
fn try_to_rust_ty (
@@ -1375,7 +1375,7 @@ trait FieldCodegen<'a> {
1375
1375
M : Extend < proc_macro2:: TokenStream > ;
1376
1376
}
1377
1377
1378
- impl < ' a > FieldCodegen < ' a > for Field {
1378
+ impl FieldCodegen < ' _ > for Field {
1379
1379
type Extra = ( ) ;
1380
1380
1381
1381
fn codegen < F , M > (
@@ -1453,7 +1453,7 @@ fn wrap_union_field_if_needed(
1453
1453
}
1454
1454
}
1455
1455
1456
- impl < ' a > FieldCodegen < ' a > for FieldData {
1456
+ impl FieldCodegen < ' _ > for FieldData {
1457
1457
type Extra = ( ) ;
1458
1458
1459
1459
fn codegen < F , M > (
@@ -1713,7 +1713,7 @@ fn compute_visibility(
1713
1713
} )
1714
1714
}
1715
1715
1716
- impl < ' a > FieldCodegen < ' a > for BitfieldUnit {
1716
+ impl FieldCodegen < ' _ > for BitfieldUnit {
1717
1717
type Extra = ( ) ;
1718
1718
1719
1719
fn codegen < F , M > (
0 commit comments