Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[rust] Make CI fail on warnings

Manav Rathi97d66a3afa4a
diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml
index 0f7694e0c6..802482c548 100644
--- a/.github/workflows/rust-lint.yml
+++ b/.github/workflows/rust-lint.yml
@@ -15,6 +15,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
+env:
+ RUSTFLAGS: -D warnings
+
jobs:
lint:
runs-on: ubuntu-latest
@@ -33,9 +36,9 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
-
+
- run: cargo fmt --check
- - run: cargo clippy
+ - run: cargo clippy --all-targets --all-features
- run: cargo build