Merge pull request #343 from embassy-rs/rustfmt-everything

Rustfmt everything
This commit is contained in:
Dario Nieuwenhuis 2021-08-04 15:35:44 +02:00 committed by GitHub
commit 07a095be0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -122,7 +122,7 @@ jobs:
with: with:
toolchain: stable toolchain: stable
- name: Check fmt - 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: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -37,7 +37,6 @@ async fn my_task(sender: Sender<'static, WithNoThreads, LedState, 1>) {
#[embassy::main] #[embassy::main]
async fn main(spawner: Spawner, p: Peripherals) { async fn main(spawner: Spawner, p: Peripherals) {
let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard);
let channel = CHANNEL.put(Channel::new()); let channel = CHANNEL.put(Channel::new());

View File

@ -14,11 +14,11 @@ use embedded_hal::digital::v2::OutputPin;
use example_common::*; use example_common::*;
use cortex_m_rt::entry; use cortex_m_rt::entry;
use embassy_stm32::dma::NoDma;
use embassy_stm32::rcc; use embassy_stm32::rcc;
use embassy_stm32::spi::{Config, Spi}; use embassy_stm32::spi::{Config, Spi};
use embassy_stm32::time::Hertz; use embassy_stm32::time::Hertz;
use embedded_hal::blocking::spi::Transfer; use embedded_hal::blocking::spi::Transfer;
use embassy_stm32::dma::NoDma;
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {