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(windows): clippy stolpert nicht mehr ueber zwei mut in einem Test

David814f4557f798
diff --git a/src-tauri/src/commands/engine.rs b/src-tauri/src/commands/engine.rs
index 276b4885..c908a63d 100644
--- a/src-tauri/src/commands/engine.rs
+++ b/src-tauri/src/commands/engine.rs
@@ -3153,11 +3153,14 @@ mod tests {
#[cfg(unix)]
let denied_holds = std::fs::read_dir(&denied).is_err();
+ // Only the unix branch below pushes; Windows clippy runs -D warnings.
+ #[cfg_attr(not(unix), allow(unused_mut))]
let mut roots = vec![
ScanRoot { dir: &app, max_depth: MAX_SCAN_DEPTH },
ScanRoot { dir: &gone, max_depth: MAX_CUSTOM_SCAN_DEPTH },
ScanRoot { dir: &relative, max_depth: MAX_CUSTOM_SCAN_DEPTH },
];
+ #[cfg_attr(not(unix), allow(unused_mut))]
let mut expected = vec![RootStatus::Ok, RootStatus::Unreachable, RootStatus::Unusable];
#[cfg(unix)]
if denied_holds {