From 03c2f381d981ae9fce4edbaeb9bcbd8d26d43108 Mon Sep 17 00:00:00 2001 From: June <61218022+itsjunetime@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:23:21 -0700 Subject: [PATCH] Add format check and elevate clippy warnings to errors --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c239bed..071796e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -48,7 +48,9 @@ jobs: sudo ldconfig - uses: actions/checkout@v4 - name: Clippy - run: cargo clippy + run: cargo clippy -- -D warnings + - name: Check fmt + run: cargo fmt -- --check - name: Run tests run: cargo test - name: Build