Skip to content

Update README.md

Update README.md #75

Workflow file for this run

name: Lints
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: clippy
# This command annotates the commit with clippy warnings whereas the next one actually fails the CI if any warnings
# are present.
- name: Annotate clippy
uses: actions-rs/clippy@master
with:
args: --all-targets --tests --all-features --workspace
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --tests --all-features --workspace -- -D warnings
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check