Skip to content

Commit

Permalink
Avoid an unnecessary by_ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Nov 28, 2023
1 parent dbaa786 commit b12851c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_data_structures/src/graph/scc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
});
Expand Down

0 comments on commit b12851c

Please sign in to comment.