Skip to content

Commit bea507d

Browse files
wpfleger96npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
andauthored
chore(ci): lint desktop Tauri crate in CI (#1801)
Signed-off-by: Will Pfleger <[email protected]> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
1 parent e09e94a commit bea507d

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ jobs:
156156
run: just desktop-test
157157
- name: Desktop build
158158
run: just desktop-build
159+
- name: Desktop Tauri clippy
160+
run: just desktop-tauri-clippy
161+
env:
162+
CMAKE_POLICY_VERSION_MINIMUM: "3.5"
159163
- name: Desktop Tauri check
160164
run: just desktop-tauri-check
161165
env:

‎desktop/src-tauri/src/commands/agent_discovery.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ async fn restart_setup_mode_agents_after_install(
322322
&global,
323323
);
324324
let now_ready = matches!(agent_readiness(&effective), AgentReadiness::Ready);
325-
let pid_alive = pid.is_some_and(|p| crate::managed_agents::process_is_running(p));
325+
let pid_alive = pid.is_some_and(crate::managed_agents::process_is_running);
326326
should_restart_after_install(
327327
is_local,
328328
pid_alive,

‎desktop/src-tauri/src/lib.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ use std::sync::{
4848
atomic::{AtomicBool, Ordering},
4949
Arc,
5050
};
51-
use tauri::{Emitter, Listener, Manager, RunEvent};
51+
#[cfg(target_os = "macos")]
52+
use tauri::Listener;
53+
use tauri::{Emitter, Manager, RunEvent};
5254
use tauri_plugin_window_state::StateFlags;
5355

56+
#[cfg(target_os = "macos")]
5457
const INITIAL_RENDER_READY_EVENT: &str = "initial-render-ready";
5558

5659
#[tauri::command]

0 commit comments

Comments
 (0)