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): die Abbruchbedingung der Leiter steht ohne doppelte Verneinung da

David4752d75b08e7
diff --git a/src-tauri/src/commands/engine_sanity.rs b/src-tauri/src/commands/engine_sanity.rs
index 7be59034..f0e3bdc0 100644
--- a/src-tauri/src/commands/engine_sanity.rs
+++ b/src-tauri/src/commands/engine_sanity.rs
@@ -447,7 +447,7 @@ pub(crate) fn decide(verdict: Sanity, facts: &EngineFacts) -> AfterProbe {
if !verdict.is_garbled() {
return AfterProbe::Serve;
}
- if !facts.gpu_layers.is_some_and(|n| n > 0) {
+ if facts.gpu_layers.is_none_or(|n| n == 0) {
return AfterProbe::GiveUp;
}
if facts.flash_attention_on && facts.every_device_without_matrix_cores {