@@ -405,7 +405,7 @@ pub type Iter<'a, T, const N: usize> = IterInner<'a, T, OwnedStorage<N>>;
405405/// An iterator over the items of a queue
406406pub type IterView < ' a , T > = IterInner < ' a , T , ViewStorage > ;
407407
408- impl < ' a , T , const N : usize > Clone for Iter < ' a , T , N > {
408+ impl < T , const N : usize > Clone for Iter < ' _ , T , N > {
409409 fn clone ( & self ) -> Self {
410410 Self {
411411 rb : self . rb ,
@@ -465,7 +465,7 @@ impl<'a, T, S: Storage> Iterator for IterMutInner<'a, T, S> {
465465 }
466466}
467467
468- impl < ' a , T , S : Storage > DoubleEndedIterator for IterInner < ' a , T , S > {
468+ impl < T , S : Storage > DoubleEndedIterator for IterInner < ' _ , T , S > {
469469 fn next_back ( & mut self ) -> Option < Self :: Item > {
470470 if self . index < self . len {
471471 let head = self . rb . head . load ( Ordering :: Relaxed ) ;
@@ -480,7 +480,7 @@ impl<'a, T, S: Storage> DoubleEndedIterator for IterInner<'a, T, S> {
480480 }
481481}
482482
483- impl < ' a , T , S : Storage > DoubleEndedIterator for IterMutInner < ' a , T , S > {
483+ impl < T , S : Storage > DoubleEndedIterator for IterMutInner < ' _ , T , S > {
484484 fn next_back ( & mut self ) -> Option < Self :: Item > {
485485 if self . index < self . len {
486486 let head = self . rb . head . load ( Ordering :: Relaxed ) ;
@@ -562,7 +562,7 @@ pub type Consumer<'a, T, const N: usize> = ConsumerInner<'a, T, OwnedStorage<N>>
562562/// NOTE the consumer semantically owns the `head` pointer of the queue
563563pub type ConsumerView < ' a , T > = ConsumerInner < ' a , T , ViewStorage > ;
564564
565- unsafe impl < ' a , T , S : Storage > Send for ConsumerInner < ' a , T , S > where T : Send { }
565+ unsafe impl < T , S : Storage > Send for ConsumerInner < ' _ , T , S > where T : Send { }
566566
567567/// Base struct for [`Producer`] and [`ProducerView`], generic over the [`Storage`].
568568///
@@ -580,9 +580,9 @@ pub type Producer<'a, T, const N: usize> = ProducerInner<'a, T, OwnedStorage<N>>
580580/// NOTE the producer semantically owns the `tail` pointer of the queue
581581pub type ProducerView < ' a , T > = ProducerInner < ' a , T , ViewStorage > ;
582582
583- unsafe impl < ' a , T , S : Storage > Send for ProducerInner < ' a , T , S > where T : Send { }
583+ unsafe impl < T , S : Storage > Send for ProducerInner < ' _ , T , S > where T : Send { }
584584
585- impl < ' a , T , S : Storage > ConsumerInner < ' a , T , S > {
585+ impl < T , S : Storage > ConsumerInner < ' _ , T , S > {
586586 /// Returns the item in the front of the queue, or `None` if the queue is empty
587587 #[ inline]
588588 pub fn dequeue ( & mut self ) -> Option < T > {
@@ -657,7 +657,7 @@ impl<'a, T, S: Storage> ConsumerInner<'a, T, S> {
657657 }
658658}
659659
660- impl < ' a , T , S : Storage > ProducerInner < ' a , T , S > {
660+ impl < T , S : Storage > ProducerInner < ' _ , T , S > {
661661 /// Adds an `item` to the end of the queue, returns back the `item` if the queue is full
662662 #[ inline]
663663 pub fn enqueue ( & mut self , val : T ) -> Result < ( ) , T > {
0 commit comments