Merge pull request #88 from michaelbeaumont/cargo_fmt
Run cargo fmt in CI
This commit is contained in:
commit
c33c9b9aec
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: rust-src
|
||||
components: rust-src, rustfmt
|
||||
override: true
|
||||
- name: install
|
||||
run: rustup target add thumbv7em-none-eabi thumbv6m-none-eabi
|
||||
|
2
ci.sh
2
ci.sh
@ -4,6 +4,8 @@ set -euxo pipefail
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
cargo fmt --all -- --check
|
||||
|
||||
# embassy std
|
||||
(cd embassy-std-examples; cargo build)
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
use core::ops::DerefMut;
|
||||
use core::pin::Pin;
|
||||
use core::task::{Context, Poll};
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::super::error::{Result};
|
||||
use super::super::error::Result;
|
||||
use super::super::traits::AsyncBufRead;
|
||||
|
||||
use core::cmp::min;
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::super::error::{Result};
|
||||
use super::super::error::Result;
|
||||
use super::super::traits::AsyncBufRead;
|
||||
|
||||
use core::pin::Pin;
|
||||
|
Loading…
Reference in New Issue
Block a user