Skip to content

Fix clippy warnings #779

Fix clippy warnings

Fix clippy warnings #779

name: linux-aarch64
on: [pull_request, create]
jobs:
build:
if: github.event_name == 'pull_request'
name: Code Quality (fmt, clippy, clang-format)
runs-on: ubuntu-24.04-arm
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Install packages
run: sudo apt-get update && sudo apt-get install -y libvirglrenderer-dev libepoxy-dev libdrm-dev libpipewire-0.3-dev clang-format
- name: Formatting (clang-format)
run: find init -iname '*.h' -o -iname '*.c' | xargs clang-format -n -Werror
- name: Create a fake init
run: touch init/init
- name: Formatting (rustfmt)
run: cargo fmt -- --check
- name: Clippy (default features)
run: cargo clippy -- -D warnings
- name: Clippy (net+blk+gpu+snd features)
run: cargo clippy --features net,blk,gpu,snd -- -D warnings