From 1e918331184f6fb11c08e5c5c7019d50452239dc Mon Sep 17 00:00:00 2001 From: Magnus Nordlander Date: Tue, 5 Aug 2025 09:58:33 +0200 Subject: Apply rustfmt --- embassy-rp/src/psram.rs | 7 ++----- embassy-rp/src/qmi_cs1.rs | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) (limited to 'embassy-rp') diff --git a/embassy-rp/src/psram.rs b/embassy-rp/src/psram.rs index a4d619565..0823b4be6 100644 --- a/embassy-rp/src/psram.rs +++ b/embassy-rp/src/psram.rs @@ -12,8 +12,8 @@ use critical_section::{acquire, release, CriticalSection, RestoreState}; -use crate::qmi_cs1::QmiCs1; use crate::pac; +use crate::qmi_cs1::QmiCs1; /// PSRAM errors. #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -213,10 +213,7 @@ impl<'d> Psram<'d> { /// Create a new PSRAM driver instance. /// /// This will detect the PSRAM device and configure it for memory-mapped access. - pub fn new( - qmi_cs1: QmiCs1<'d>, - config: Config, - ) -> Result { + pub fn new(qmi_cs1: QmiCs1<'d>, config: Config) -> Result { let qmi = pac::QMI; let xip = pac::XIP_CTRL; diff --git a/embassy-rp/src/qmi_cs1.rs b/embassy-rp/src/qmi_cs1.rs index ada420432..b8ae41e35 100644 --- a/embassy-rp/src/qmi_cs1.rs +++ b/embassy-rp/src/qmi_cs1.rs @@ -36,17 +36,13 @@ impl<'d> QmiCs1<'d> { } } -trait SealedInstance { - -} +trait SealedInstance {} /// QMI CS1 instance trait. #[allow(private_bounds)] pub trait Instance: SealedInstance + PeripheralType {} -impl SealedInstance for peripherals::QMI_CS1 { - -} +impl SealedInstance for peripherals::QMI_CS1 {} impl Instance for peripherals::QMI_CS1 {} -- cgit