@@ -286,7 +286,7 @@ impl Queue {
286286 }
287287
288288 /// Pop the first available descriptor chain from the avail ring.
289- pub fn pop < ' a , ' b > ( & ' a mut self , mem : & ' b GuestMemoryMmap ) -> Option < DescriptorChain < ' b > > {
289+ pub fn pop < ' b > ( & mut self , mem : & ' b GuestMemoryMmap ) -> Option < DescriptorChain < ' b > > {
290290 let len = self . len ( mem) ;
291291 // The number of descriptor chain heads to process should always
292292 // be smaller or equal to the queue size, as the driver should
@@ -310,8 +310,8 @@ impl Queue {
310310
311311 /// Try to pop the first available descriptor chain from the avail ring.
312312 /// If no descriptor is available, enable notifications.
313- pub fn pop_or_enable_notification < ' a , ' b > (
314- & ' a mut self ,
313+ pub fn pop_or_enable_notification < ' b > (
314+ & mut self ,
315315 mem : & ' b GuestMemoryMmap ,
316316 ) -> Option < DescriptorChain < ' b > > {
317317 if !self . uses_notif_suppression {
@@ -330,10 +330,7 @@ impl Queue {
330330 /// # Important
331331 /// This is an internal method that ASSUMES THAT THERE ARE AVAILABLE DESCRIPTORS. Otherwise it
332332 /// will retrieve a descriptor that contains garbage data (obsolete/empty).
333- fn do_pop_unchecked < ' a , ' b > (
334- & ' a mut self ,
335- mem : & ' b GuestMemoryMmap ,
336- ) -> Option < DescriptorChain < ' b > > {
333+ fn do_pop_unchecked < ' b > ( & mut self , mem : & ' b GuestMemoryMmap ) -> Option < DescriptorChain < ' b > > {
337334 // This fence ensures all subsequent reads see the updated driver writes.
338335 fence ( Ordering :: Acquire ) ;
339336
0 commit comments