Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b12851c

Browse files
committed
Avoid an unnecessary by_ref.
1 parent dbaa786 commit b12851c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_data_structures/src/graph/scc

1 file changed

+1
-1
lines changed

compiler/rustc_data_structures/src/graph/scc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ where
492492
let returned_walk =
493493
return_value.take().into_iter().map(|walk| (*successor_node, Some(walk)));
494494

495-
let successor_walk = successors.by_ref().map(|successor_node| {
495+
let successor_walk = successors.map(|successor_node| {
496496
debug!(?node, ?successor_node);
497497
(successor_node, self.inspect_node(successor_node))
498498
});

0 commit comments

Comments
 (0)