@@ -13,7 +13,7 @@ pub struct InOut<'inp, 'out, T> {
1313impl < ' inp , ' out , T > InOut < ' inp , ' out , T > {
1414 /// Reborrow `self`.
1515 #[ inline( always) ]
16- pub fn reborrow < ' a > ( & ' a mut self ) -> InOut < ' a , ' a , T > {
16+ pub fn reborrow ( & mut self ) -> InOut < ' _ , ' _ , T > {
1717 Self {
1818 in_ptr : self . in_ptr ,
1919 out_ptr : self . out_ptr ,
@@ -23,13 +23,13 @@ impl<'inp, 'out, T> InOut<'inp, 'out, T> {
2323
2424 /// Get immutable reference to the input value.
2525 #[ inline( always) ]
26- pub fn get_in < ' a > ( & ' a self ) -> & ' a T {
26+ pub fn get_in ( & self ) -> & T {
2727 unsafe { & * self . in_ptr }
2828 }
2929
3030 /// Get mutable reference to the output value.
3131 #[ inline( always) ]
32- pub fn get_out < ' a > ( & ' a mut self ) -> & ' a mut T {
32+ pub fn get_out ( & mut self ) -> & mut T {
3333 unsafe { & mut * self . out_ptr }
3434 }
3535
@@ -73,7 +73,7 @@ impl<'inp, 'out, T> InOut<'inp, 'out, T> {
7373 }
7474}
7575
76- impl < ' inp , ' out , T : Clone > InOut < ' inp , ' out , T > {
76+ impl < T : Clone > InOut < ' _ , ' _ , T > {
7777 /// Clone input value and return it.
7878 #[ inline( always) ]
7979 pub fn clone_in ( & self ) -> T {
@@ -110,7 +110,7 @@ impl<'inp, 'out, T, N: ArraySize> InOut<'inp, 'out, Array<T, N>> {
110110 /// # Panics
111111 /// If `pos` greater or equal to array length.
112112 #[ inline( always) ]
113- pub fn get < ' a > ( & ' a mut self , pos : usize ) -> InOut < ' a , ' a , T > {
113+ pub fn get ( & mut self , pos : usize ) -> InOut < ' _ , ' _ , T > {
114114 assert ! ( pos < N :: USIZE ) ;
115115 unsafe {
116116 InOut {
@@ -133,7 +133,7 @@ impl<'inp, 'out, T, N: ArraySize> InOut<'inp, 'out, Array<T, N>> {
133133 }
134134}
135135
136- impl < ' inp , ' out , N : ArraySize > InOut < ' inp , ' out , Array < u8 , N > > {
136+ impl < N : ArraySize > InOut < ' _ , ' _ , Array < u8 , N > > {
137137 /// XOR `data` with values behind the input slice and write
138138 /// result to the output slice.
139139 ///
@@ -153,7 +153,7 @@ impl<'inp, 'out, N: ArraySize> InOut<'inp, 'out, Array<u8, N>> {
153153 }
154154}
155155
156- impl < ' inp , ' out , N , M > InOut < ' inp , ' out , Array < Array < u8 , N > , M > >
156+ impl < N , M > InOut < ' _ , ' _ , Array < Array < u8 , N > , M > >
157157where
158158 N : ArraySize ,
159159 M : ArraySize ,
0 commit comments