Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

chore(rust): silence the non-Windows dead-code warning I added with ps_single_quoted

David7b8d56d96c49
diff --git a/src-tauri/src/commands/system.rs b/src-tauri/src/commands/system.rs
index 9c46c584..0d1d027a 100644
--- a/src-tauri/src/commands/system.rs
+++ b/src-tauri/src/commands/system.rs
@@ -88,6 +88,8 @@ fn screenshot_blocking() -> Result<serde_json::Value, String> {
/// `'` untouched, so any user whose profile contains an apostrophe
/// (C:\Users\O'Brien\AppData\Local\Temp) ended the string early and the script
/// died with a parse error.
+// Only the Windows capture path calls this; its tests run on every platform.
+#[cfg_attr(not(target_os = "windows"), allow(dead_code))]
fn ps_single_quoted(s: &str) -> String {
s.replace('\'', "''")
}