Skip to content

Commit b637a5f

Browse files
committed
Apply impl_trait_overcaptures
1 parent a0d1859 commit b637a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<N: Eq + Ord + Clone, E: Default + Clone> Graph<N, E> {
5151
self.nodes.get(from)?.get(to)
5252
}
5353

54-
pub fn edges(&self, from: &N) -> impl Iterator<Item = (&N, &E)> {
54+
pub fn edges(&self, from: &N) -> impl Iterator<Item = (&N, &E)> + use<'_, N, E> {
5555
self.nodes.get(from).into_iter().flat_map(|x| x.iter())
5656
}
5757

0 commit comments

Comments
 (0)