about summary refs log tree commit diff
path: root/src/librustc_data_structures/graph/implementation
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-10-01 13:43:30 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2019-10-01 23:15:47 +0900
commitf10d2e2d23e6a47bb7d3df17d4fbe067f8c99ea9 (patch)
tree4e2704568b0d3adde476e9000727b7a0f647b614 /src/librustc_data_structures/graph/implementation
parent22bc9e1d9ca49ee4f5cd953088ab09c238a6dd26 (diff)
downloadrust-f10d2e2d23e6a47bb7d3df17d4fbe067f8c99ea9.tar.gz
rust-f10d2e2d23e6a47bb7d3df17d4fbe067f8c99ea9.zip
Fix clippy warnings
Diffstat (limited to 'src/librustc_data_structures/graph/implementation')
-rw-r--r--src/librustc_data_structures/graph/implementation/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_data_structures/graph/implementation/mod.rs b/src/librustc_data_structures/graph/implementation/mod.rs
index 052a09c0774..c438a8558a7 100644
--- a/src/librustc_data_structures/graph/implementation/mod.rs
+++ b/src/librustc_data_structures/graph/implementation/mod.rs
@@ -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)
     }
 }