Skip to content

armgit / ente

Public Imported from GitHub
0

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

Deny warnings via RUSTFLAGS in the mobile Rust lints

Manav Rathi42edc4bbd0bb
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index 36f0b17824..31d8ff79f8 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -18,6 +18,9 @@ on:
permissions:
contents: read
+env:
+ RUSTFLAGS: -D warnings
+
jobs:
lint:
runs-on: ubuntu-latest
@@ -76,10 +79,10 @@ jobs:
- run: cargo codegen frb
working-directory: rust
- - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked -- -D warnings
+ - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked
working-directory: rust
- - run: cargo clippy -p ente_rust --features flutter --all-targets --locked -- -D warnings
+ - run: cargo clippy -p ente_rust --features flutter --all-targets --locked
working-directory: rust
- run: flutter pub get --enforce-lockfile
diff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.yml
index 07efc04de2..d28b8780af 100644
--- a/.github/workflows/warm-caches.yml
+++ b/.github/workflows/warm-caches.yml
@@ -57,6 +57,8 @@ jobs:
defaults:
run:
working-directory: rust
+ env:
+ RUSTFLAGS: -D warnings
steps:
- name: Checkout code and submodules
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -74,9 +76,9 @@ jobs:
- run: cargo codegen frb
- - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked -- -D warnings
+ - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked
- - run: cargo clippy -p ente_rust --features flutter --all-targets --locked -- -D warnings
+ - run: cargo clippy -p ente_rust --features flutter --all-targets --locked
rust-wasm:
# For web-lint.yml's npm run build:wasm.