Skip to content

Commit 57aa0d8

Browse files
Rollup merge of #85246 - ayushmishra2005:minor-reactoring, r=petrochenkov
Miner code formatting
2 parents 5a8619b + 267450a commit 57aa0d8

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_mir/src/dataflow/move_paths

1 file changed

+1
-4
lines changed

compiler/rustc_mir/src/dataflow/move_paths/builder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
137137
self.loc,
138138
InteriorOfSliceOrArray {
139139
ty: place_ty,
140-
is_index: match elem {
141-
ProjectionElem::Index(..) => true,
142-
_ => false,
143-
},
140+
is_index: matches!(elem, ProjectionElem::Index(..)),
144141
},
145142
));
146143
}

0 commit comments

Comments
 (0)