From 1346a9de6f8f2e3f18d2f983fcfeee3385bf8191 Mon Sep 17 00:00:00 2001 From: Maksim Chervonnyi Date: Fri, 12 Jun 2026 18:57:10 +0200 Subject: [PATCH] Add --all-targets to just lint to match CI CI lints test code via --all-targets, but the justfile recipe didn't, so test-only clippy errors surfaced only in CI. Also fix the one field_reassign_with_default error this exposes in quilt-sync tests. --- justfile | 4 ++-- quilt-sync/src-tauri/src/commands.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index 6f69effc..c8d84e21 100644 --- a/justfile +++ b/justfile @@ -10,8 +10,8 @@ coverage: # Lint all packages with all features lint: - cargo clippy --all-features - cargo clippy --target wasm32-unknown-unknown -p quilt-sync-ui --all-features + cargo clippy --all-targets --all-features + cargo clippy --target wasm32-unknown-unknown -p quilt-sync-ui --all-targets --all-features # Run QuiltSync frontend tests in headless Firefox test-frontend: diff --git a/quilt-sync/src-tauri/src/commands.rs b/quilt-sync/src-tauri/src/commands.rs index ff37d0dc..0f61153a 100644 --- a/quilt-sync/src-tauri/src/commands.rs +++ b/quilt-sync/src-tauri/src/commands.rs @@ -3241,8 +3241,10 @@ mod tests { #[test] fn autosync_settings_data_preserves_close_to_tray() { - let mut s = AutosyncSettings::default(); - s.close_to_tray = true; + let s = AutosyncSettings { + close_to_tray: true, + ..Default::default() + }; let data = AutosyncSettingsData::from(s); assert!(data.close_to_tray); }