Skip to content

Remove unused imports #57

Remove unused imports

Remove unused imports #57

Workflow file for this run

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 }}