Skip to content

Commit

Permalink
Rollup merge of #85246 - ayushmishra2005:minor-reactoring, r=petroche…
Browse files Browse the repository at this point in the history
…nkov

Miner code formatting
  • Loading branch information
GuillaumeGomez authored May 15, 2021
2 parents 5a8619b + 267450a commit 57aa0d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_mir/src/dataflow/move_paths/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
self.loc,
InteriorOfSliceOrArray {
ty: place_ty,
is_index: match elem {
ProjectionElem::Index(..) => true,
_ => false,
},
is_index: matches!(elem, ProjectionElem::Index(..)),
},
));
}
Expand Down

0 comments on commit 57aa0d8

Please sign in to comment.