Skip to content

Commit

Permalink
Fix new clippy lint about Option::is_some_and
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Apr 16, 2024
1 parent e7e371c commit 5e538c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s-openapi-tests/src/watch_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async fn watch_pods() {
};

let name = pod.metadata.name.as_deref();
if name.map(|name| name.starts_with("kube-apiserver-")).unwrap_or_default() {
if name.is_some_and(|name| name.starts_with("kube-apiserver-")) {
std::future::ready(Some(pod))
}
else {
Expand Down

0 comments on commit 5e538c5

Please sign in to comment.