Skip to content

Use once_cell instead of lazy_static #32

Use once_cell instead of lazy_static

Use once_cell instead of lazy_static #32

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
fmt:
name: rustfmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: default
- run: cargo fmt --all -- --check
lint:
name: clippy lint
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
stability:
- ""
- "--release"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.toolchain}}
profile: default
default: true
- name: cargo clippy
run: "cargo clippy --all ${{matrix.stability}} $([ ${{matrix.toolchain}} == nightly] || echo --features stable)"