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
|
- 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
2
ci.sh
@ -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)
|
||||||
|
|
||||||
|
@ -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};
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user