From 5f9682663e5e1f14bc4da8e46d9a9b7d37278ffb Mon Sep 17 00:00:00 2001 From: ospab Date: Sun, 21 Jun 2026 22:41:22 +0300 Subject: [PATCH] Suppress dead_code warnings in ostp-gui lib Log::message is deserialized from the IPC stream but not acted on (informational variant, GUI shows it via the tray). HelperState::port is stored for potential reconnection but not read back after initial connection. Both are correctly annotated with #[allow(dead_code)]. Co-Authored-By: Claude Sonnet 4.6 --- ostp-gui/src-tauri/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ostp-gui/src-tauri/src/lib.rs b/ostp-gui/src-tauri/src/lib.rs index 646eeb8..d9490d9 100644 --- a/ostp-gui/src-tauri/src/lib.rs +++ b/ostp-gui/src-tauri/src/lib.rs @@ -40,7 +40,7 @@ struct UIMetrics { #[serde(tag = "type", rename_all = "lowercase")] enum HelperMsg { Status { value: u8 }, - Log { message: String }, + Log { #[allow(dead_code)] message: String }, Metrics { bytes_sent: u64, bytes_recv: u64, rtt_ms: u32 }, Error { message: String }, } @@ -59,6 +59,7 @@ struct HelperState { pipe_state: Arc>, cmd_tx: tokio::sync::mpsc::Sender, token: String, + #[allow(dead_code)] port: u16, }