diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cdfe354c..17b8353e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/ci.sh b/ci.sh index d726db37..d169246b 100755 --- a/ci.sh +++ b/ci.sh @@ -4,6 +4,8 @@ set -euxo pipefail cd $(dirname $0) +cargo fmt --all -- --check + # embassy std (cd embassy-std-examples; cargo build) diff --git a/embassy/src/io/traits.rs b/embassy/src/io/traits.rs index f1f91a46..6138adb4 100644 --- a/embassy/src/io/traits.rs +++ b/embassy/src/io/traits.rs @@ -1,4 +1,3 @@ - use core::ops::DerefMut; use core::pin::Pin; use core::task::{Context, Poll}; diff --git a/embassy/src/io/util/read.rs b/embassy/src/io/util/read.rs index 31aaa0da..274b43a4 100644 --- a/embassy/src/io/util/read.rs +++ b/embassy/src/io/util/read.rs @@ -1,4 +1,4 @@ -use super::super::error::{Result}; +use super::super::error::Result; use super::super::traits::AsyncBufRead; use core::cmp::min; diff --git a/embassy/src/io/util/read_buf.rs b/embassy/src/io/util/read_buf.rs index 7489eac2..71299b05 100644 --- a/embassy/src/io/util/read_buf.rs +++ b/embassy/src/io/util/read_buf.rs @@ -1,4 +1,4 @@ -use super::super::error::{Result}; +use super::super::error::Result; use super::super::traits::AsyncBufRead; use core::pin::Pin;