Skip to content

Commit

Permalink
fix lint check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Sep 19, 2024
1 parent 47db25a commit 22ba77c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ jobs:

- name: check lints
run: |
set -o pipefail # Ensure the pipeline fails if any command in the pipeline fails
cargo check 2>&1 | sed -r "s/\x1B\[[0-9;]*[mK]//g" | tee /dev/tty | grep -q "^warning:" && \
(echo "Build emitted the following warnings:" >&2 && exit 1) || echo "No warnings found."
set -o pipefail
cargo check 2>&1 | sed -r "s/\x1B\[[0-9;]*[mK]//g" | tee /dev/tty | grep "warning:" && exit 1
echo "No warnings found."
cargo-clippy-all-features:
name: cargo clippy --all-features
Expand Down

0 comments on commit 22ba77c

Please sign in to comment.