A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
chore(desktop): quiet Windows test-build dead-code warnings until the lifecycle lands
Marcelito41d14f40a15a
diff --git a/apps/desktop/src-tauri/src/app_channel.rs b/apps/desktop/src-tauri/src/app_channel.rsindex 81db955..6d8e5cf 100644--- a/apps/desktop/src-tauri/src/app_channel.rs+++ b/apps/desktop/src-tauri/src/app_channel.rs@@ -250,12 +250,15 @@ impl AppChannel {self.closer.close_error()}+ // Used by the Windows daemon lifecycle tests, which land after the daemon module compiles there.#[cfg(all(test, windows))]+ #[allow(dead_code)]pub(crate) fn test_inject_cancel_error(&self, code: i32) {self.closer.inject_cancel_error(code);}#[cfg(all(test, windows))]+ #[allow(dead_code)]pub(crate) fn test_close_barriers(&self, entered: Arc<std::sync::Barrier>, release: Arc<std::sync::Barrier>) {self.closer.close_barriers(entered, release);}diff --git a/apps/desktop/src-tauri/src/app_channel/windows.rs b/apps/desktop/src-tauri/src/app_channel/windows.rsindex 0847756..e98d293 100644--- a/apps/desktop/src-tauri/src/app_channel/windows.rs+++ b/apps/desktop/src-tauri/src/app_channel/windows.rs@@ -122,6 +122,7 @@ impl ChannelStream {self.0.cancel_error.store(code, std::sync::atomic::Ordering::SeqCst);}#[cfg(test)]+ #[allow(dead_code)] // through AppChannel::test_close_barriers, for the lifecycle testspub(super) fn close_barriers(&self, entered: Arc<std::sync::Barrier>, release: Arc<std::sync::Barrier>) {*self.0.cancel_barriers.lock().unwrap() = Some((entered, release));}diff --git a/apps/desktop/src-tauri/src/daemon_unavailable.rs b/apps/desktop/src-tauri/src/daemon_unavailable.rsindex e2136d9..da64360 100644--- a/apps/desktop/src-tauri/src/daemon_unavailable.rs+++ b/apps/desktop/src-tauri/src/daemon_unavailable.rs@@ -10,8 +10,10 @@mod windows_record;// Exercise the real launch contracts and portable encoding without enabling Windows launch.+// Not every item is used until the Windows lifecycle replaces this file (runtime_dir, for one).#[cfg(test)]#[path = "daemon/launch.rs"]+#[allow(dead_code)]mod launch;#[cfg(test)]pub use launch::{ChildEndpoint, ChildProcess, LaunchSpec};