chore: fix clippy lints 2024-12-06 (#10138)

This commit is contained in:
Conrad Ludgate
2024-12-16 15:33:21 +00:00
committed by GitHub
parent c5e3314c6e
commit 6565fd4056
30 changed files with 58 additions and 68 deletions

View File

@@ -6873,10 +6873,7 @@ impl Service {
let mut plan = Vec::new();
for (node_id, attached) in nodes_by_load {
let available = locked
.nodes
.get(&node_id)
.map_or(false, |n| n.is_available());
let available = locked.nodes.get(&node_id).is_some_and(|n| n.is_available());
if !available {
continue;
}