Remove unused imports #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Code formatting check | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
SUBFOLDER: | |
- stm32f3-discovery | |
- stm32f1-bluepill | |
- microbit | |
- raspberrypi | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache cargo dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
- ~/.cargo/bin/ | |
- ~/.cargo/registry/index/ | |
- ~/.cargo/registry/cache/ | |
- ~/.cargo/git/db/ | |
key: ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
${{ runner.OS }}-cargo- | |
- name: Cache build output dependencies | |
uses: actions/cache@v2 | |
with: | |
path: target | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
${{ runner.OS }}-build- | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
working-directory: ${{ matrix.SUBFOLDER }} |