Skip to content

Commit d201dc3

Browse files
committed
testsuite format
1 parent 595ff44 commit d201dc3

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

testsuite/tests/adc.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ mod tests {
4747
};
4848

4949
State {
50-
adc: Some(adc::Adc::new(
51-
dp.ADC1,
52-
clocks,
53-
&mut dp.ADC1_2,
54-
&mut rcc.ahb,
55-
)),
50+
adc: Some(adc::Adc::new(dp.ADC1, clocks, &mut dp.ADC1_2, &mut rcc.ahb)),
5651
analog: pair.0,
5752
output: pair.1,
5853
ahb: rcc.ahb,
@@ -88,12 +83,7 @@ mod tests {
8883
let adc1 = adc.free();
8984

9085
defmt::debug!("Reconfigure");
91-
let new_adc = adc::Adc::new(
92-
adc1,
93-
state.clocks,
94-
&mut state.adc1_2,
95-
&mut state.ahb,
96-
);
86+
let new_adc = adc::Adc::new(adc1, state.clocks, &mut state.adc1_2, &mut state.ahb);
9787

9888
defmt::debug!("Replace");
9989
// put adc back in place

0 commit comments

Comments
 (0)