Skip to content

Commit

Permalink
chore: fix extract_if method signature
Browse files Browse the repository at this point in the history
Vec's `extract_if()` method signature.
Changed in latest nightly release

Signed-off-by: Paul Wekesa <paul1tw1@gmail.com>
  • Loading branch information
Paul-weqe committed Dec 22, 2024
1 parent 023a835 commit cb07449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion holo-bgp/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);

Expand Down
2 changes: 1 addition & 1 deletion holo-northbound/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cb07449

Please sign in to comment.