diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 118143da..d11bc8d4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -122,7 +122,7 @@ jobs: with: toolchain: stable - name: Check fmt - run: for i in embassy-*; do (cd $i; cargo fmt -- --check); done + run: find -name '*.rs' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 test: runs-on: ubuntu-latest diff --git a/examples/nrf/src/bin/mpsc.rs b/examples/nrf/src/bin/mpsc.rs index 44395523..cdc7d082 100644 --- a/examples/nrf/src/bin/mpsc.rs +++ b/examples/nrf/src/bin/mpsc.rs @@ -37,7 +37,6 @@ async fn my_task(sender: Sender<'static, WithNoThreads, LedState, 1>) { #[embassy::main] async fn main(spawner: Spawner, p: Peripherals) { - let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); let channel = CHANNEL.put(Channel::new()); diff --git a/examples/stm32l0/src/bin/spi.rs b/examples/stm32l0/src/bin/spi.rs index 5290906e..6a43a965 100644 --- a/examples/stm32l0/src/bin/spi.rs +++ b/examples/stm32l0/src/bin/spi.rs @@ -14,11 +14,11 @@ use embedded_hal::digital::v2::OutputPin; use example_common::*; use cortex_m_rt::entry; +use embassy_stm32::dma::NoDma; use embassy_stm32::rcc; use embassy_stm32::spi::{Config, Spi}; use embassy_stm32::time::Hertz; use embedded_hal::blocking::spi::Transfer; -use embassy_stm32::dma::NoDma; #[entry] fn main() -> ! {