Skip to content

Fix some lint errors #24

Fix some lint errors

Fix some lint errors #24

Workflow file for this run

name: Continuous integration
on: [push, pull_request]
jobs:
build:
name: Build
strategy:
matrix:
os: [ubuntu, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: cargo build
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: cargo test
fmt:
name: Coding style checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Code lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: rustup component add clippy
- run: cargo clippy --all-targets -- -D warnings