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 <noreply@anthropic.com>
This commit is contained in:
ospab 2026-06-21 22:41:22 +03:00
parent ee38b15402
commit 5f9682663e
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ struct UIMetrics {
#[serde(tag = "type", rename_all = "lowercase")] #[serde(tag = "type", rename_all = "lowercase")]
enum HelperMsg { enum HelperMsg {
Status { value: u8 }, Status { value: u8 },
Log { message: String }, Log { #[allow(dead_code)] message: String },
Metrics { bytes_sent: u64, bytes_recv: u64, rtt_ms: u32 }, Metrics { bytes_sent: u64, bytes_recv: u64, rtt_ms: u32 },
Error { message: String }, Error { message: String },
} }
@ -59,6 +59,7 @@ struct HelperState {
pipe_state: Arc<Mutex<HelperPipeState>>, pipe_state: Arc<Mutex<HelperPipeState>>,
cmd_tx: tokio::sync::mpsc::Sender<String>, cmd_tx: tokio::sync::mpsc::Sender<String>,
token: String, token: String,
#[allow(dead_code)]
port: u16, port: u16,
} }