fix(kms): early exit when iterating over crts

Clippy noted that this loop doesn't actually loop, so maybe this fixes some issues.
This commit is contained in:
Vukašin Vojinović 2025-10-16 16:02:30 +02:00 committed by Victoria Brekenfeld
parent b6c5d00bec
commit 0a8da05847

View file

@ -797,7 +797,9 @@ impl KmsGuard<'_> {
break 'outer;
}
}
}
if !new_pairings.contains_key(&conn) {
// test failed, we don't have a crtc for conn
anyhow::bail!("Missing crtc for {conn:?}, gpu doesn't have enough resources.");
}