@@ -253,21 +253,21 @@ impl TCFType for CFType {
253
253
/// A reference to an element inside a container
254
254
pub struct ItemRef < ' a , T : ' a > ( ManuallyDrop < T > , PhantomData < & ' a T > ) ;
255
255
256
- impl < ' a , T > Deref for ItemRef < ' a , T > {
256
+ impl < T > Deref for ItemRef < ' _ , T > {
257
257
type Target = T ;
258
258
259
259
fn deref ( & self ) -> & T {
260
260
& self . 0
261
261
}
262
262
}
263
263
264
- impl < ' a , T : fmt:: Debug > fmt:: Debug for ItemRef < ' a , T > {
264
+ impl < T : fmt:: Debug > fmt:: Debug for ItemRef < ' _ , T > {
265
265
fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
266
266
self . 0 . fmt ( f)
267
267
}
268
268
}
269
269
270
- impl < ' a , T : PartialEq > PartialEq for ItemRef < ' a , T > {
270
+ impl < T : PartialEq > PartialEq for ItemRef < ' _ , T > {
271
271
fn eq ( & self , other : & Self ) -> bool {
272
272
self . 0 . eq ( & other. 0 )
273
273
}
@@ -276,27 +276,27 @@ impl<'a, T: PartialEq> PartialEq for ItemRef<'a, T> {
276
276
/// A reference to a mutable element inside a container
277
277
pub struct ItemMutRef < ' a , T : ' a > ( ManuallyDrop < T > , PhantomData < & ' a T > ) ;
278
278
279
- impl < ' a , T > Deref for ItemMutRef < ' a , T > {
279
+ impl < T > Deref for ItemMutRef < ' _ , T > {
280
280
type Target = T ;
281
281
282
282
fn deref ( & self ) -> & T {
283
283
& self . 0
284
284
}
285
285
}
286
286
287
- impl < ' a , T > DerefMut for ItemMutRef < ' a , T > {
287
+ impl < T > DerefMut for ItemMutRef < ' _ , T > {
288
288
fn deref_mut ( & mut self ) -> & mut T {
289
289
& mut self . 0
290
290
}
291
291
}
292
292
293
- impl < ' a , T : fmt:: Debug > fmt:: Debug for ItemMutRef < ' a , T > {
293
+ impl < T : fmt:: Debug > fmt:: Debug for ItemMutRef < ' _ , T > {
294
294
fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
295
295
self . 0 . fmt ( f)
296
296
}
297
297
}
298
298
299
- impl < ' a , T : PartialEq > PartialEq for ItemMutRef < ' a , T > {
299
+ impl < T : PartialEq > PartialEq for ItemMutRef < ' _ , T > {
300
300
fn eq ( & self , other : & Self ) -> bool {
301
301
self . 0 . eq ( & other. 0 )
302
302
}
@@ -371,7 +371,7 @@ unsafe impl ToVoid<*const c_void> for *const c_void {
371
371
}
372
372
}
373
373
374
- unsafe impl < ' a > ToVoid < CFType > for & ' a CFType {
374
+ unsafe impl ToVoid < CFType > for & CFType {
375
375
fn to_void ( & self ) -> * const c_void {
376
376
self . as_concrete_TypeRef ( ) . as_void_ptr ( )
377
377
}
0 commit comments