Skip to content

Commit

Permalink
ci: disable -D warnings
Browse files Browse the repository at this point in the history
This caused a CI failure on warnings I believe to have been spurious ("unused imports" in a pub use re-export).
  • Loading branch information
hdevalence committed Dec 29, 2023
1 parent 9ef3e1d commit 4e7c77b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
uses: taiki-e/install-action@nextest
- name: Load rust cache
uses: astriaorg/buildjet-rust-cache@v2.5.1
- name: Run cargo check, failing on warnings
- name: Run cargo check
run: cargo check --release
env:
# The `-D warnings` option causes an error on warnings;
# but it caused apparently spurious warnings, so it was disabled.
# we must duplicate the rustflags from `.cargo/config.toml`.
RUSTFLAGS: "-D warnings --cfg tokio_unstable"
RUSTFLAGS: "--cfg tokio_unstable"

# If a dependency was modified, Cargo.lock may flap if not committed.
- name: Check for diffs
Expand Down

0 comments on commit 4e7c77b

Please sign in to comment.