Skip to content

Fix clippy lints for Rust 1.75 #136

Fix clippy lints for Rust 1.75

Fix clippy lints for Rust 1.75 #136

Workflow file for this run

name: Rust CI
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Checkout
uses: actions/checkout@v3
- name: πŸ¦€ Rust Toolchain & Cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: πŸ“ Check Rust Code Formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Checkout
uses: actions/checkout@v3
- name: πŸ¦€ Rust Toolchain & Cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: πŸ“Ž Check Rust Code with Clippy
run: cargo clippy --all-targets -- -D warnings
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Checkout
uses: actions/checkout@v3
- name: πŸ¦€ Rust Toolchain & Cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: πŸ““ Check Docs
env:
RUSTDOCFLAGS: "-D broken-intra-doc-links"
run: cargo doc --no-deps
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: πŸ¦€ Rust Toolchain & Cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: πŸ§ͺ Test
run: cargo test