diff --git a/holo-bgp/src/events.rs b/holo-bgp/src/events.rs index 116775f1..76b033f7 100644 --- a/holo-bgp/src/events.rs +++ b/holo-bgp/src/events.rs @@ -718,7 +718,7 @@ where let mut nbr_reach = reach.clone(); nbr_unreach.extend( nbr_reach - .extract_if(|(_, route)| !nbr.distribute_filter(route)) + .extract_if(.., |(_, route)| !nbr.distribute_filter(route)) .map(|(prefix, _)| prefix), ); diff --git a/holo-northbound/src/configuration.rs b/holo-northbound/src/configuration.rs index c77b5c1f..963f1cf8 100644 --- a/holo-northbound/src/configuration.rs +++ b/holo-northbound/src/configuration.rs @@ -681,7 +681,7 @@ where // Move to a separate vector the changes that need to be relayed. let callbacks = P::callbacks().unwrap(); let relayed_changes = changes - .extract_if(|(cb_key, _)| !callbacks.0.contains_key(cb_key)) + .extract_if(.., |(cb_key, _)| !callbacks.0.contains_key(cb_key)) .collect(); // Process local changes.