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.

fix(clippy): silence two Windows-only clippy errors

purple6961daa864dc
diff --git a/src-tauri/src/commands/install/ollama.rs b/src-tauri/src/commands/install/ollama.rs
index 071bad4e..dff508f0 100644
--- a/src-tauri/src/commands/install/ollama.rs
+++ b/src-tauri/src/commands/install/ollama.rs
@@ -19,8 +19,6 @@
//! signierte App. Was sie eint, ist der Schluss — starten und warten, ob die
//! API antwortet.
-#[cfg(target_os = "windows")]
-use std::process::Command;
use std::process::Stdio;
use std::sync::{Arc, Mutex};
diff --git a/src-tauri/src/python.rs b/src-tauri/src/python.rs
index e12437c3..1cef1abe 100644
--- a/src-tauri/src/python.rs
+++ b/src-tauri/src/python.rs
@@ -423,6 +423,12 @@ fn python_in_conda() -> Option<String> {
/// during init. The version is asked from the interpreter itself, not read
/// off a folder name or a pyvenv.cfg, because those describe what was
/// installed once, not what starts today.
+///
+/// On Windows the only callers run behind `python_version_and_arch` instead
+/// (a 32-bit or ARM64 interpreter answers this check like a normal one, see
+/// its doc comment), so this is unused there outside the test that exercises
+/// it directly.
+#[cfg(any(not(windows), test))]
pub fn python_version(exe: &str) -> Option<String> {
let out = python_command(exe)
.args(["-c", "import sys;print('%d.%d.%d'%sys.version_info[:3])"])