fix: suppress stub dead-code warnings; clarify update toast copy
Some checks failed
check / cargo check (macos-latest) (push) Has been cancelled
check / cargo check (ubuntu-22.04) (push) Has been cancelled
check / cargo check (windows-latest) (push) Has been cancelled
check / svelte build + lint (push) Has been cancelled

This commit is contained in:
2026-04-18 09:45:37 +01:00
parent 8b5d92f466
commit 0b1faf0679
2 changed files with 3 additions and 1 deletions

View File

@@ -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();

View File

@@ -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 */ });