@@ -1609,7 +1609,7 @@ impl ValueList for LegacySerializedValues {
16091609 }
16101610}
16111611
1612- impl < ' b > ValueList for Cow < ' b , LegacySerializedValues > {
1612+ impl ValueList for Cow < ' _ , LegacySerializedValues > {
16131613 fn serialized ( & self ) -> SerializedResult < ' _ > {
16141614 Ok ( Cow :: Borrowed ( self . as_ref ( ) ) )
16151615 }
@@ -1662,23 +1662,32 @@ where
16621662 IT : Iterator < Item = & ' a VL > + Clone ,
16631663 VL : ValueList + ' a ,
16641664{
1665- type LegacyBatchValuesIter < ' r > = LegacyBatchValuesIteratorFromIterator < IT > where Self : ' r ;
1665+ type LegacyBatchValuesIter < ' r >
1666+ = LegacyBatchValuesIteratorFromIterator < IT >
1667+ where
1668+ Self : ' r ;
16661669 fn batch_values_iter ( & self ) -> Self :: LegacyBatchValuesIter < ' _ > {
16671670 self . it . clone ( ) . into ( )
16681671 }
16691672}
16701673
16711674// Implement BatchValues for slices of ValueList types
16721675impl < T : ValueList > LegacyBatchValues for [ T ] {
1673- type LegacyBatchValuesIter < ' r > = LegacyBatchValuesIteratorFromIterator < std:: slice:: Iter < ' r , T > > where Self : ' r ;
1676+ type LegacyBatchValuesIter < ' r >
1677+ = LegacyBatchValuesIteratorFromIterator < std:: slice:: Iter < ' r , T > >
1678+ where
1679+ Self : ' r ;
16741680 fn batch_values_iter ( & self ) -> Self :: LegacyBatchValuesIter < ' _ > {
16751681 self . iter ( ) . into ( )
16761682 }
16771683}
16781684
16791685// Implement BatchValues for Vec<ValueList>
16801686impl < T : ValueList > LegacyBatchValues for Vec < T > {
1681- type LegacyBatchValuesIter < ' r > = LegacyBatchValuesIteratorFromIterator < std:: slice:: Iter < ' r , T > > where Self : ' r ;
1687+ type LegacyBatchValuesIter < ' r >
1688+ = LegacyBatchValuesIteratorFromIterator < std:: slice:: Iter < ' r , T > >
1689+ where
1690+ Self : ' r ;
16821691 fn batch_values_iter ( & self ) -> Self :: LegacyBatchValuesIter < ' _ > {
16831692 LegacyBatchValues :: batch_values_iter ( self . as_slice ( ) )
16841693 }
@@ -1687,7 +1696,10 @@ impl<T: ValueList> LegacyBatchValues for Vec<T> {
16871696// Here is an example implementation for (T0, )
16881697// Further variants are done using a macro
16891698impl < T0 : ValueList > LegacyBatchValues for ( T0 , ) {
1690- type LegacyBatchValuesIter < ' r > = LegacyBatchValuesIteratorFromIterator < std:: iter:: Once < & ' r T0 > > where Self : ' r ;
1699+ type LegacyBatchValuesIter < ' r >
1700+ = LegacyBatchValuesIteratorFromIterator < std:: iter:: Once < & ' r T0 > >
1701+ where
1702+ Self : ' r ;
16911703 fn batch_values_iter ( & self ) -> Self :: LegacyBatchValuesIter < ' _ > {
16921704 std:: iter:: once ( & self . 0 ) . into ( )
16931705 }
@@ -1775,8 +1787,11 @@ impl_batch_values_for_tuple!(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T
17751787 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ; 16 ) ;
17761788
17771789// Every &impl BatchValues should also implement BatchValues
1778- impl < ' a , T : LegacyBatchValues + ?Sized > LegacyBatchValues for & ' a T {
1779- type LegacyBatchValuesIter < ' r > = <T as LegacyBatchValues >:: LegacyBatchValuesIter < ' r > where Self : ' r ;
1790+ impl < T : LegacyBatchValues + ?Sized > LegacyBatchValues for & T {
1791+ type LegacyBatchValuesIter < ' r >
1792+ = <T as LegacyBatchValues >:: LegacyBatchValuesIter < ' r >
1793+ where
1794+ Self : ' r ;
17801795 fn batch_values_iter ( & self ) -> Self :: LegacyBatchValuesIter < ' _ > {
17811796 <T as LegacyBatchValues >:: batch_values_iter ( * self )
17821797 }
@@ -1806,8 +1821,10 @@ impl<'f, T: LegacyBatchValues> LegacyBatchValuesFirstSerialized<'f, T> {
18061821}
18071822
18081823impl < ' f , BV : LegacyBatchValues > LegacyBatchValues for LegacyBatchValuesFirstSerialized < ' f , BV > {
1809- type LegacyBatchValuesIter < ' r > =
1810- LegacyBatchValuesFirstSerialized < ' f , <BV as LegacyBatchValues >:: LegacyBatchValuesIter < ' r > > where Self : ' r ;
1824+ type LegacyBatchValuesIter < ' r >
1825+ = LegacyBatchValuesFirstSerialized < ' f , <BV as LegacyBatchValues >:: LegacyBatchValuesIter < ' r > >
1826+ where
1827+ Self : ' r ;
18111828 fn batch_values_iter ( & self ) -> Self :: LegacyBatchValuesIter < ' _ > {
18121829 LegacyBatchValuesFirstSerialized {
18131830 first : self . first ,
0 commit comments