[router] clean up lint warnings with clippy execution (#9201)

This commit is contained in:
Jeff Nettleton
2025-08-15 11:01:21 -07:00
committed by GitHub
parent 21b8846066
commit d7e38b2f6d
10 changed files with 39 additions and 38 deletions

View File

@@ -74,11 +74,10 @@ impl PodInfo {
return false;
}
pod.metadata.labels.as_ref().map_or(false, |labels| {
selector
.iter()
.all(|(k, v)| labels.get(k).map_or(false, |label_value| label_value == v))
})
pod.metadata
.labels
.as_ref()
.is_some_and(|labels| selector.iter().all(|(k, v)| labels.get(k) == Some(v)))
}
/// Check if a pod should be included in service discovery