@@ -275,7 +275,7 @@ pub struct VringMutex<M: GuestAddressSpace = GuestMemoryAtomic<GuestMemoryMmap>>
275
275
276
276
impl < M : GuestAddressSpace > VringMutex < M > {
277
277
/// Get a mutable guard to the underlying raw `VringState` object.
278
- fn lock ( & self ) -> MutexGuard < VringState < M > > {
278
+ fn lock ( & self ) -> MutexGuard < ' _ , VringState < M > > {
279
279
self . state . lock ( ) . unwrap ( )
280
280
}
281
281
}
@@ -295,11 +295,11 @@ impl<M: 'static + GuestAddressSpace> VringT<M> for VringMutex<M> {
295
295
} )
296
296
}
297
297
298
- fn get_ref ( & self ) -> <Self as VringStateGuard < M > >:: G {
298
+ fn get_ref ( & self ) -> <Self as VringStateGuard < ' _ , M > >:: G {
299
299
self . state . lock ( ) . unwrap ( )
300
300
}
301
301
302
- fn get_mut ( & self ) -> <Self as VringStateMutGuard < M > >:: G {
302
+ fn get_mut ( & self ) -> <Self as VringStateMutGuard < ' _ , M > >:: G {
303
303
self . lock ( )
304
304
}
305
305
@@ -390,7 +390,7 @@ pub struct VringRwLock<M: GuestAddressSpace = GuestMemoryAtomic<GuestMemoryMmap>
390
390
391
391
impl < M : GuestAddressSpace > VringRwLock < M > {
392
392
/// Get a mutable guard to the underlying raw `VringState` object.
393
- fn write_lock ( & self ) -> RwLockWriteGuard < VringState < M > > {
393
+ fn write_lock ( & self ) -> RwLockWriteGuard < ' _ , VringState < M > > {
394
394
self . state . write ( ) . unwrap ( )
395
395
}
396
396
}
@@ -410,11 +410,11 @@ impl<M: 'static + GuestAddressSpace> VringT<M> for VringRwLock<M> {
410
410
} )
411
411
}
412
412
413
- fn get_ref ( & self ) -> <Self as VringStateGuard < M > >:: G {
413
+ fn get_ref ( & self ) -> <Self as VringStateGuard < ' _ , M > >:: G {
414
414
self . state . read ( ) . unwrap ( )
415
415
}
416
416
417
- fn get_mut ( & self ) -> <Self as VringStateMutGuard < M > >:: G {
417
+ fn get_mut ( & self ) -> <Self as VringStateMutGuard < ' _ , M > >:: G {
418
418
self . write_lock ( )
419
419
}
420
420
0 commit comments