Skip to content

Merge pull request #46 from jerel/platform-fix #311

Merge pull request #46 from jerel/platform-fix

Merge pull request #46 from jerel/platform-fix #311

Workflow file for this run

name: Clippy & Format
on:
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: clippy and rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings -A clippy::uninlined_format_args