feat: add enum variants #311
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Style checks | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
components: rustfmt | |
- name: Run rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
# Gave up on clippy, because different versions give different lints and it's not even forward- or backwards-compatible | |
# clippy: | |
# name: Clippy | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout branch | |
# uses: actions/checkout@master | |
# with: | |
# submodules: true | |
# - name: Setup Rust toolchain | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# profile: minimal | |
# toolchain: 1.51.0 | |
# components: clippy | |
# override: true | |
# - name: Run clippy | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: clippy | |
# args: -- -D warnings |