Fix clippy warnings

This commit is contained in:
Yuki Okushi
2019-10-01 13:43:30 +09:00
parent 22bc9e1d9c
commit f10d2e2d23
5 changed files with 16 additions and 17 deletions

View File

@@ -303,11 +303,11 @@ pub struct AdjacentEdges<'g, N, E> {
impl<'g, N: Debug, E: Debug> AdjacentEdges<'g, N, E> {
fn targets(self) -> impl Iterator<Item = NodeIndex> + 'g {
self.into_iter().map(|(_, edge)| edge.target)
self.map(|(_, edge)| edge.target)
}
fn sources(self) -> impl Iterator<Item = NodeIndex> + 'g {
self.into_iter().map(|(_, edge)| edge.source)
self.map(|(_, edge)| edge.source)
}
}