Skip to content

Commit 1d0508f

Browse files
committed
fmt
1 parent d1b0f07 commit 1d0508f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stm32-data-gen/src/rcc.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,18 @@ impl ParsedRccs {
359359
("n6", "SDMMC1"), // HCLK2 is corrext per Cube and Docs so no mux check
360360
("n6", "SDMMC2"), // HCLKU is corrext per Cube and Docs so no mux check
361361
];
362-
362+
363363
let kernel_clock = match mux {
364364
Some(mux) => {
365365
// check for mismatch between mux and bus clock.
366366
//
367367
// U5 has one ADCDACSEL for multiple ADCs which may be on
368368
// different HCLKs, so we skip the check in that case
369-
if !(RCC_PERI_MUX_EXCEPTIONS.iter().any(|x| {rcc_version == x.0 && peri_name.starts_with(x.1)})) && phclk.is_match(&en_rst.bus_clock) {
369+
if !(RCC_PERI_MUX_EXCEPTIONS
370+
.iter()
371+
.any(|x| rcc_version == x.0 && peri_name.starts_with(x.1)))
372+
&& phclk.is_match(&en_rst.bus_clock)
373+
{
370374
for v in &mux.variants {
371375
if phclk.is_match(v) && v != &maybe_kernel_clock {
372376
panic!(

0 commit comments

Comments
 (0)