mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Apply impl_trait_overcaptures
This commit is contained in:
parent
a0d1859575
commit
b637a5fe83
@ -51,7 +51,7 @@ impl<N: Eq + Ord + Clone, E: Default + Clone> Graph<N, E> {
|
||||
self.nodes.get(from)?.get(to)
|
||||
}
|
||||
|
||||
pub fn edges(&self, from: &N) -> impl Iterator<Item = (&N, &E)> {
|
||||
pub fn edges(&self, from: &N) -> impl Iterator<Item = (&N, &E)> + use<'_, N, E> {
|
||||
self.nodes.get(from).into_iter().flat_map(|x| x.iter())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user