about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorJeremy Stucki <jeremy@myelin.ch>2019-06-21 20:05:14 +0200
committerJeremy Stucki <stucki.jeremy@gmail.com>2019-07-03 10:01:01 +0200
commitd50a3a7b8696975a2a1116f8c4eb4673271ae968 (patch)
treeaecadbecf15de4c899e8ba231fcbdfcfa43c2957 /src/librustc_data_structures
parent6ae80cf23f744566f2822861291abcfcdc6af5ce (diff)
downloadrust-d50a3a7b8696975a2a1116f8c4eb4673271ae968.tar.gz
rust-d50a3a7b8696975a2a1116f8c4eb4673271ae968.zip
Remove needless lifetimes
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/graph/implementation/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_data_structures/graph/implementation/mod.rs b/src/librustc_data_structures/graph/implementation/mod.rs
index de4b1bcd0c2..d2699004c81 100644
--- a/src/librustc_data_structures/graph/implementation/mod.rs
+++ b/src/librustc_data_structures/graph/implementation/mod.rs
@@ -247,11 +247,11 @@ impl<N: Debug, E: Debug> Graph<N, E> {
         self.incoming_edges(target).sources()
     }
 
-    pub fn depth_traverse<'a>(
-        &'a self,
+    pub fn depth_traverse(
+        &self,
         start: NodeIndex,
         direction: Direction,
-    ) -> DepthFirstTraversal<'a, N, E> {
+    ) -> DepthFirstTraversal<'_, N, E> {
         DepthFirstTraversal::with_start_node(self, start, direction)
     }