Skip to content

simplify the example in doc #7

simplify the example in doc

simplify the example in doc #7

Workflow file for this run

on: [push, pull_request]
name: Lint and Test
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Check Format
run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run tests
run: cargo test