From ce9a9078a694d96800823577a6541ceb539b4aee Mon Sep 17 00:00:00 2001 From: everdrone Date: Tue, 11 Nov 2025 15:56:09 +0100 Subject: rustfmt --- embassy-stm32/src/exti.rs | 6 +++--- embassy-stm32/src/rcc/n6.rs | 12 +++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/embassy-stm32/src/exti.rs b/embassy-stm32/src/exti.rs index 83e0ecf88..cb46d362c 100644 --- a/embassy-stm32/src/exti.rs +++ b/embassy-stm32/src/exti.rs @@ -5,13 +5,13 @@ use core::marker::PhantomData; use core::pin::Pin; use core::task::{Context, Poll}; -use embassy_hal_internal::{impl_peripheral, PeripheralType}; +use embassy_hal_internal::{PeripheralType, impl_peripheral}; use embassy_sync::waitqueue::AtomicWaker; use crate::gpio::{AnyPin, Input, Level, Pin as GpioPin, PinNumber, Pull}; -use crate::pac::exti::regs::Lines; use crate::pac::EXTI; -use crate::{interrupt, pac, peripherals, Peri}; +use crate::pac::exti::regs::Lines; +use crate::{Peri, interrupt, pac, peripherals}; const EXTI_COUNT: usize = 16; static EXTI_WAKERS: [AtomicWaker; EXTI_COUNT] = [const { AtomicWaker::new() }; EXTI_COUNT]; diff --git a/embassy-stm32/src/rcc/n6.rs b/embassy-stm32/src/rcc/n6.rs index 5e66e1e86..c9c874e75 100644 --- a/embassy-stm32/src/rcc/n6.rs +++ b/embassy-stm32/src/rcc/n6.rs @@ -770,7 +770,9 @@ fn init_osc(config: Config) -> OscOutput { || (pll3_src == Pllsel::HSE && rcc_sr.pllrdy(2)) || (pll4_src == Pllsel::HSE && rcc_sr.pllrdy(3)) { - panic!("When the HSE is used as cpu/system bus clock or clock source for any PLL, it is not allowed to be disabled"); + panic!( + "When the HSE is used as cpu/system bus clock or clock source for any PLL, it is not allowed to be disabled" + ); } else { debug!("HSE off"); @@ -806,7 +808,9 @@ fn init_osc(config: Config) -> OscOutput { || (pll3_src == Pllsel::HSI && rcc_sr.pllrdy(2)) || (pll4_src == Pllsel::HSI && rcc_sr.pllrdy(3)) { - panic!("When the HSI is used as cpu/system bus clock or clock source for any PLL, it is not allowed to be disabled"); + panic!( + "When the HSI is used as cpu/system bus clock or clock source for any PLL, it is not allowed to be disabled" + ); } else { debug!("HSI off"); @@ -835,7 +839,9 @@ fn init_osc(config: Config) -> OscOutput { || (pll3_src == Pllsel::MSI && rcc_sr.pllrdy(2)) || (pll4_src == Pllsel::MSI && rcc_sr.pllrdy(3)) { - panic!("When the MSI is used as cpu/system bus clock or clock source for any PLL, it is not allowed to be disabled"); + panic!( + "When the MSI is used as cpu/system bus clock or clock source for any PLL, it is not allowed to be disabled" + ); } else { RCC.ccr().write(|w| w.set_msionc(true)); while RCC.sr().read().msirdy() {} -- cgit