Skip to content

Commit

Permalink
chore: treat warnins as errors, remove unused crate, fix warning abou…
Browse files Browse the repository at this point in the history
…t unused import (#480)
  • Loading branch information
hrzlgnm authored Nov 1, 2024
1 parent e94496f commit 7f4955f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
cargo --locked auditable tauri android build
env:
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837
RUSTFLAGS: "-D warnings"

- name: 🔑 Extract android signing key from env (publish only)
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/desktop-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
- name: 🔨 Build using tauri action (publish artifacts on release)
uses: tauri-apps/tauri-action@8c3e0753aa015d00d03631d6d4f64ad59489251d # v0.5.15
env:
RUSTFLAGS: "-D warnings"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
Expand Down
13 changes: 0 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ chrono = "0.4.38"
console_error_panic_hook = "0.1.7"
console_log = "1.0.0"
futures = "0.3.30"
gloo-timers = { version = "0.3.0", features = ["futures"] }
icondata = "0.4.0"
js-sys = "0.3.70"
leptos = { version = "0.6.15", features = ["csr"] }
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use clap::builder::TypedValueParser as _;
use clap::Parser;
use mdns_sd::{ServiceDaemon, ServiceEvent, ServiceInfo};
use models::*;
#[cfg(not(debug_assertions))]
#[cfg(all(desktop, not(debug_assertions)))]
use shared_constants::SPLASH_SCREEN_DURATION;
use shared_constants::{MDNS_SD_META_SERVICE, METRICS_CHECK_INTERVAL};
use std::{
Expand Down

0 comments on commit 7f4955f

Please sign in to comment.