Merge pull request #88 from michaelbeaumont/cargo_fmt

Run cargo fmt in CI
This commit is contained in:
Dario Nieuwenhuis 2021-03-18 21:50:26 +01:00 committed by GitHub
commit c33c9b9aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly toolchain: nightly
components: rust-src components: rust-src, rustfmt
override: true override: true
- name: install - name: install
run: rustup target add thumbv7em-none-eabi thumbv6m-none-eabi run: rustup target add thumbv7em-none-eabi thumbv6m-none-eabi

2
ci.sh
View File

@ -4,6 +4,8 @@ set -euxo pipefail
cd $(dirname $0) cd $(dirname $0)
cargo fmt --all -- --check
# embassy std # embassy std
(cd embassy-std-examples; cargo build) (cd embassy-std-examples; cargo build)

View File

@ -1,4 +1,3 @@
use core::ops::DerefMut; use core::ops::DerefMut;
use core::pin::Pin; use core::pin::Pin;
use core::task::{Context, Poll}; use core::task::{Context, Poll};

View File

@ -1,4 +1,4 @@
use super::super::error::{Result}; use super::super::error::Result;
use super::super::traits::AsyncBufRead; use super::super::traits::AsyncBufRead;
use core::cmp::min; use core::cmp::min;

View File

@ -1,4 +1,4 @@
use super::super::error::{Result}; use super::super::error::Result;
use super::super::traits::AsyncBufRead; use super::super::traits::AsyncBufRead;
use core::pin::Pin; use core::pin::Pin;