Merge pull request #343 from embassy-rs/rustfmt-everything
Rustfmt everything
This commit is contained in:
commit
07a095be0d
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -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
|
||||
|
@ -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());
|
||||
|
@ -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() -> ! {
|
||||
|
Loading…
Reference in New Issue
Block a user