diff --git a/src/adc.rs b/src/adc.rs index d148b6de7..10dced11c 100644 --- a/src/adc.rs +++ b/src/adc.rs @@ -930,7 +930,10 @@ pub mod continuous { { type Adc = <
::P as ADCPin>::Adc;
- type Iterator<'a> = core::iter::Once<(adc_channel_t, adc_atten_t)> where Self: 'a;
+ type Iterator<'a>
+ = core::iter::Once<(adc_channel_t, adc_atten_t)>
+ where
+ Self: 'a;
fn iter(&self) -> Self::Iterator<'_> {
core::iter::once((P::P::CHANNEL, attenuation::NONE))
@@ -943,10 +946,13 @@ pub mod continuous {
{
type Adc = C::Adc;
- type Iterator<'a> = core::iter::Map<
+ type Iterator<'a>
+ = core::iter::Map<
C::Iterator<'a>,
fn((adc_channel_t, adc_atten_t)) -> (adc_channel_t, adc_atten_t),
- > where Self: 'a;
+ >
+ where
+ Self: 'a;
fn iter(&self) -> Self::Iterator<'_> {
self.0.iter().map(Attenuated::::atten)
@@ -961,7 +967,14 @@ pub mod continuous {
{
type Adc = C::Adc;
- type Iterator<'a> = core::iter::FlatMap