diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-27 16:59:53 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-28 14:32:40 +1100 |
| commit | b12851ce5d56290b6583e23ee484498c0d68937e (patch) | |
| tree | 9e8ed23643ceebc807aa362e2af263b95c6a67e1 /compiler/rustc_data_structures/src/graph/scc/mod.rs | |
| parent | dbaa78621adf9d2da2ef52eebc8a1f3b35283030 (diff) | |
| download | rust-b12851ce5d56290b6583e23ee484498c0d68937e.tar.gz rust-b12851ce5d56290b6583e23ee484498c0d68937e.zip | |
Avoid an unnecessary `by_ref`.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/scc/mod.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/scc/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs index cf9312ea8fb..b54d75f7ed7 100644 --- a/compiler/rustc_data_structures/src/graph/scc/mod.rs +++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs @@ -492,7 +492,7 @@ where let returned_walk = return_value.take().into_iter().map(|walk| (*successor_node, Some(walk))); - let successor_walk = successors.by_ref().map(|successor_node| { + let successor_walk = successors.map(|successor_node| { debug!(?node, ?successor_node); (successor_node, self.inspect_node(successor_node)) }); |
