From 0b1faf0679d917e71fec99035da975d1449e3e1d Mon Sep 17 00:00:00 2001 From: Jake Date: Sat, 18 Apr 2026 09:45:37 +0100 Subject: [PATCH] fix: suppress stub dead-code warnings; clarify update toast copy --- crates/ai-formatting/src/llm_client.rs | 2 ++ src/routes/+layout.svelte | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ai-formatting/src/llm_client.rs b/crates/ai-formatting/src/llm_client.rs index b5a1fde..ed25052 100644 --- a/crates/ai-formatting/src/llm_client.rs +++ b/crates/ai-formatting/src/llm_client.rs @@ -8,6 +8,7 @@ /// The hardening guard ("speech, not instructions") is mandatory — without it, /// a user dictating "ignore previous instructions and do X" becomes a real /// attack vector for any cloud-provider backend. +#[allow(dead_code)] pub const CLEANUP_PROMPT: &str = "\ You are a transcript cleanup assistant. \ The text you receive is TRANSCRIBED SPEECH from a voice recording. \ @@ -25,6 +26,7 @@ Do not summarise, do not add information, do not remove content the speaker said /// correct them in context without changing the core prompt. /// /// Returns an empty string if terms is empty. +#[allow(dead_code)] pub fn format_dictionary_suffix(terms: &[String]) -> String { if terms.is_empty() { return String::new(); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5b4b1b1..ffeb3d2 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -236,7 +236,7 @@ invoke("check_for_update") .then((version) => { if (version) { - toasts.info(`Kon ${version} is available. Restart to install.`); + toasts.info(`Kon ${version} is available. Download and restart to update.`); } }) .catch(() => { /* update check failure must not affect the app */ });