diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-07 00:56:32 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-12 20:03:09 +0100 |
| commit | 7b1b08cfee6881705eed931e24b8abd4e68ef328 (patch) | |
| tree | 010b9d151c0cec04ca87ddfc5b9cc775251c36b7 /src/librustc_data_structures | |
| parent | 23de8275c9b5e5812dc54a12bdba6d80870d9dc8 (diff) | |
| download | rust-7b1b08cfee6881705eed931e24b8abd4e68ef328.tar.gz rust-7b1b08cfee6881705eed931e24b8abd4e68ef328.zip | |
remove lifetimes that can be elided (clippy::needless_lifetimes)
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/graph/scc/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/vec_graph/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_data_structures/graph/scc/mod.rs b/src/librustc_data_structures/graph/scc/mod.rs index 70fc2d7dad9..7ecf3e3cb8d 100644 --- a/src/librustc_data_structures/graph/scc/mod.rs +++ b/src/librustc_data_structures/graph/scc/mod.rs @@ -97,7 +97,7 @@ impl<N: Idx, S: Idx> GraphSuccessors<'graph> for Sccs<N, S> { } impl<N: Idx, S: Idx> WithSuccessors for Sccs<N, S> { - fn successors<'graph>(&'graph self, node: S) -> <Self as GraphSuccessors<'graph>>::Iter { + fn successors(&self, node: S) -> <Self as GraphSuccessors<'_>>::Iter { self.successors(node).iter().cloned() } } diff --git a/src/librustc_data_structures/graph/vec_graph/mod.rs b/src/librustc_data_structures/graph/vec_graph/mod.rs index 22c50afe6d0..064467174ca 100644 --- a/src/librustc_data_structures/graph/vec_graph/mod.rs +++ b/src/librustc_data_structures/graph/vec_graph/mod.rs @@ -101,7 +101,7 @@ impl<N: Idx> GraphSuccessors<'graph> for VecGraph<N> { } impl<N: Idx> WithSuccessors for VecGraph<N> { - fn successors<'graph>(&'graph self, node: N) -> <Self as GraphSuccessors<'graph>>::Iter { + fn successors(&self, node: N) -> <Self as GraphSuccessors<'_>>::Iter { self.successors(node).iter().cloned() } } |
