diff --git a/src/directed/topological_sort.rs b/src/directed/topological_sort.rs index 761ae461..c3ae336a 100644 --- a/src/directed/topological_sort.rs +++ b/src/directed/topological_sort.rs @@ -180,7 +180,7 @@ where let mut groups = Vec::>::new(); let mut prev_group: Vec = 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() {