Skip to content

Update to improve code readability and efficiency #58

Update to improve code readability and efficiency

Update to improve code readability and efficiency #58

Workflow file for this run

name: Rust lint & test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: macos-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Run check
run: cargo check
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run test
run: cargo test