Skip to content

Commit 2803ce0

Browse files
committed
Clearer destructuring
1 parent 75b7447 commit 2803ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/const_goto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<'a, 'tcx> Visitor<'tcx> for ConstGotoOptimizationFinder<'a, 'tcx> {
8585
let found_value_idx_option = targets
8686
.iter()
8787
.enumerate()
88-
.find(|(_, x)| const_value == x.0)
88+
.find(|(_, (value,_))| const_value == *value)
8989
.map(|(idx, _)| idx);
9090

9191
let target_to_use_in_goto =

0 commit comments

Comments
 (0)