diff options
| author | bors <bors@rust-lang.org> | 2021-10-11 11:14:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-11 11:14:47 +0000 |
| commit | 6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073 (patch) | |
| tree | b1a74ad359f85c8805121858b0a93e86ff638875 /compiler/rustc_data_structures/src/graph/implementation | |
| parent | 86d6d2b7389fe1b339402c1798edae8b695fc9ef (diff) | |
| parent | 14b6cf6fd72f17f52f71b5fb79833489fb259bb3 (diff) | |
| download | rust-6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073.tar.gz rust-6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073.zip | |
Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov
Apply clippy suggestions for rustc and core
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/implementation')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/implementation/mod.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler/rustc_data_structures/src/graph/implementation/mod.rs b/compiler/rustc_data_structures/src/graph/implementation/mod.rs index 1aa7ac024d9..9ff401c3c7a 100644 --- a/compiler/rustc_data_structures/src/graph/implementation/mod.rs +++ b/compiler/rustc_data_structures/src/graph/implementation/mod.rs @@ -206,17 +206,11 @@ impl<N: Debug, E: Debug> Graph<N, E> { AdjacentEdges { graph: self, direction, next: first_edge } } - pub fn successor_nodes<'a>( - &'a self, - source: NodeIndex, - ) -> impl Iterator<Item = NodeIndex> + 'a { + pub fn successor_nodes(&self, source: NodeIndex) -> impl Iterator<Item = NodeIndex> + '_ { self.outgoing_edges(source).targets() } - pub fn predecessor_nodes<'a>( - &'a self, - target: NodeIndex, - ) -> impl Iterator<Item = NodeIndex> + 'a { + pub fn predecessor_nodes(&self, target: NodeIndex) -> impl Iterator<Item = NodeIndex> + '_ { self.incoming_edges(target).sources() } |
