Skip to content

Commit 0cee527

Browse files
Miner code formatting
1 parent 9daf546 commit 0cee527

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

+1-4
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)