@@ -930,7 +930,10 @@ pub mod continuous {
930
930
{
931
931
type Adc = <<P as Peripheral >:: P as ADCPin >:: Adc ;
932
932
933
- type Iterator < ' a > = core:: iter:: Once < ( adc_channel_t , adc_atten_t ) > where Self : ' a ;
933
+ type Iterator < ' a >
934
+ = core:: iter:: Once < ( adc_channel_t , adc_atten_t ) >
935
+ where
936
+ Self : ' a ;
934
937
935
938
fn iter ( & self ) -> Self :: Iterator < ' _ > {
936
939
core:: iter:: once ( ( P :: P :: CHANNEL , attenuation:: NONE ) )
@@ -943,10 +946,13 @@ pub mod continuous {
943
946
{
944
947
type Adc = C :: Adc ;
945
948
946
- type Iterator < ' a > = core:: iter:: Map <
949
+ type Iterator < ' a >
950
+ = core:: iter:: Map <
947
951
C :: Iterator < ' a > ,
948
952
fn ( ( adc_channel_t , adc_atten_t ) ) -> ( adc_channel_t , adc_atten_t ) ,
949
- > where Self : ' a ;
953
+ >
954
+ where
955
+ Self : ' a ;
950
956
951
957
fn iter ( & self ) -> Self :: Iterator < ' _ > {
952
958
self . 0 . iter ( ) . map ( Attenuated :: < A , C > :: atten)
@@ -961,7 +967,14 @@ pub mod continuous {
961
967
{
962
968
type Adc = C :: Adc ;
963
969
964
- type Iterator < ' a > = core:: iter:: FlatMap < core:: slice:: Iter < ' a , C > , <C as AdcChannels >:: Iterator < ' a > , fn ( & ' a C ) -> C :: Iterator < ' a > > where Self : ' a ;
970
+ type Iterator < ' a >
971
+ = core:: iter:: FlatMap <
972
+ core:: slice:: Iter < ' a , C > ,
973
+ <C as AdcChannels >:: Iterator < ' a > ,
974
+ fn ( & ' a C ) -> C :: Iterator < ' a > ,
975
+ >
976
+ where
977
+ Self : ' a ;
965
978
966
979
fn iter ( & self ) -> Self :: Iterator < ' _ > {
967
980
self . 0 . iter ( ) . flat_map ( AdcChannels :: iter)
@@ -989,7 +1002,10 @@ pub mod continuous {
989
1002
{
990
1003
type Adc = A ;
991
1004
992
- type Iterator < ' a > = core:: iter:: Empty < ( adc_channel_t , adc_atten_t ) > where Self : ' a ;
1005
+ type Iterator < ' a >
1006
+ = core:: iter:: Empty < ( adc_channel_t , adc_atten_t ) >
1007
+ where
1008
+ Self : ' a ;
993
1009
994
1010
fn iter ( & self ) -> Self :: Iterator < ' _ > {
995
1011
core:: iter:: empty ( )
@@ -1022,7 +1038,10 @@ pub mod continuous {
1022
1038
{
1023
1039
type Adc = F :: Adc ;
1024
1040
1025
- type Iterator < ' a > = core:: iter:: Chain < F :: Iterator < ' a > , S :: Iterator < ' a > > where Self : ' a ;
1041
+ type Iterator < ' a >
1042
+ = core:: iter:: Chain < F :: Iterator < ' a > , S :: Iterator < ' a > >
1043
+ where
1044
+ Self : ' a ;
1026
1045
1027
1046
fn iter ( & self ) -> Self :: Iterator < ' _ > {
1028
1047
self . first . iter ( ) . chain ( self . second . iter ( ) )
0 commit comments