Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
[feature] add a comment to a collect()
Browse files Browse the repository at this point in the history
This wasn't really obvious to me when I was looking at this code.
  • Loading branch information
sunshowers committed Apr 1, 2020
1 parent 37cda14 commit e4f925b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guppy/src/graph/feature/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ impl<'g> FeatureGraphBuildState<'g> {
}
}
})
// The filter_map above holds an &mut reference to self, which is why it needs to be
// collected.
.collect();

// Don't create a map to the base 'from' node since it is already created in
// add_nodes.
self.add_edges(from_node, to_nodes, FeatureEdge::FeatureDependency);
Expand Down

0 comments on commit e4f925b

Please sign in to comment.