Fix search_is_some lint
This change fixes a lint introduced with the Rust 1.53.0 release. The
lint warns of using the combination of `find` followed by `is_some`
versus using `any`.
See
for more details.
@@ -163,12 +163,11 @@ impl CircuitPredicate {
}
CircuitPredicate::MembersInclude(nodes) => {
for node_id in nodes {
- if proposal
+ if !proposal
.circuit()
.members()
.iter()
- .find(|node| node_id == node.node_id())
- .is_none()
+ .any(|node| node_id == node.node_id())
{
return false;
}
