From bab979ece3b351e95409b2f483ec1b6532e1de09 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 12 Apr 2025 16:54:57 +0200 Subject: [PATCH] clippy, fmt, docs --- examples/embassy/src/lib.rs | 2 +- examples/embassy/src/main.rs | 2 +- examples/simple/src/main.rs | 2 +- flashloader/src/main.rs | 2 +- va108xx-hal/src/spi.rs | 2 +- va108xx-hal/src/uart/mod.rs | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/embassy/src/lib.rs b/examples/embassy/src/lib.rs index cd7af3f..c1d93ab 100644 --- a/examples/embassy/src/lib.rs +++ b/examples/embassy/src/lib.rs @@ -1,3 +1,3 @@ #![no_std] -use panic_probe as _; use defmt_rtt as _; +use panic_probe as _; diff --git a/examples/embassy/src/main.rs b/examples/embassy/src/main.rs index 9b532a1..35e0411 100644 --- a/examples/embassy/src/main.rs +++ b/examples/embassy/src/main.rs @@ -1,8 +1,8 @@ #![no_std] #![no_main] +use embassy_example as _; use embassy_executor::Spawner; use embassy_time::{Duration, Instant, Ticker}; -use embassy_example as _; cfg_if::cfg_if! { if #[cfg(feature = "custom-irqs")] { diff --git a/examples/simple/src/main.rs b/examples/simple/src/main.rs index 154f422..55f4c3c 100644 --- a/examples/simple/src/main.rs +++ b/examples/simple/src/main.rs @@ -3,8 +3,8 @@ #![no_std] use cortex_m_rt::entry; -use va108xx_hal as _; use panic_rtt_target as _; +use va108xx_hal as _; #[entry] fn main() -> ! { diff --git a/flashloader/src/main.rs b/flashloader/src/main.rs index e9ac424..4928bfa 100644 --- a/flashloader/src/main.rs +++ b/flashloader/src/main.rs @@ -3,9 +3,9 @@ #![no_main] #![no_std] +use defmt_rtt as _; // global logger use num_enum::TryFromPrimitive; use panic_probe as _; -use defmt_rtt as _; // global logger use ringbuf::{ traits::{Consumer, Observer, Producer}, StaticRb, diff --git a/va108xx-hal/src/spi.rs b/va108xx-hal/src/spi.rs index b213a7f..afc8b5c 100644 --- a/va108xx-hal/src/spi.rs +++ b/va108xx-hal/src/spi.rs @@ -1004,7 +1004,7 @@ where /// * `sys_clk` - System clock /// * `spi` - SPI bus to use /// * `pins` - Pins to be used for SPI transactions. These pins are consumed - /// to ensure the pins can not be used for other purposes anymore + /// to ensure the pins can not be used for other purposes anymore /// * `spi_cfg` - Configuration specific to the SPI bus pub fn new( syscfg: &mut pac::Sysconfig, diff --git a/va108xx-hal/src/uart/mod.rs b/va108xx-hal/src/uart/mod.rs index 67f3fd8..929b6c2 100644 --- a/va108xx-hal/src/uart/mod.rs +++ b/va108xx-hal/src/uart/mod.rs @@ -631,8 +631,8 @@ where /// - `pins`: UART TX and RX pin tuple. /// - `config`: UART specific configuration parameters like baudrate. /// - `irq_cfg`: Optional interrupt configuration. This should be a valid value if the plan - /// is to use TX or RX functionality relying on interrupts. If only the blocking API without - /// any interrupt support is used, this can be [None]. + /// is to use TX or RX functionality relying on interrupts. If only the blocking API without + /// any interrupt support is used, this can be [None]. pub fn new( syscfg: &mut va108xx::Sysconfig, sys_clk: impl Into,