Skip to content

Clippy fixes.

Clippy fixes. #73

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly toolchain
run: rustup toolchain add nightly --profile minimal --component rustfmt
- name: rustfmt
run: cargo +nightly fmt --all --check
build:
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- run: rustup component add clippy
- name: Install dependencies
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get install libdbus-1-dev
- name: Clippy (default)
run: |
cargo clippy --all-targets -- -D warnings
- name: Clippy (all features)
run: |
cargo clippy --all-targets --all-features -- -D warnings
- name: Clippy (iOS)
if: ${{ runner.os == 'macOS'}}
run: |
rustup target add aarch64-apple-ios
cargo clippy --all-targets --target=aarch64-apple-ios -- -D warnings
- name: Test
run: cargo test --all