Skip to content

Commit

Permalink
fix: use proper pattern binding
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Nov 23, 2024
1 parent 455933d commit 54dc3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directed/topological_sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ where
let mut groups = Vec::<Vec<N>>::new();
let mut prev_group: Vec<N> = preds_map
.iter()
.filter(|(_, &num_preds)| num_preds == 0)
.filter(|&(_, num_preds)| *num_preds == 0)
.map(|(node, _)| node.clone())
.collect();
if prev_group.is_empty() {
Expand Down

0 comments on commit 54dc3d6

Please sign in to comment.