Skip to content

Add Default implementation for Units to satisfy Clippy #141

Add Default implementation for Units to satisfy Clippy

Add Default implementation for Units to satisfy Clippy #141

Workflow file for this run

name: Run tests
on:
push:
paths:
- "src/**"
- "tests/**"
- "examples/**"
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- ".github/workflows/test.yml"
pull_request:
branches:
- master
- "release/*"
env:
RUST_BACKTRACE: short
RUSTFLAGS: '-D warnings'
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: Lint code
run: cargo clippy --all-targets
- name: Compile tests
run: cargo test --workspace --no-fail-fast --no-run --locked
- name: Run tests
run: cargo test --workspace --no-fail-fast