Rollup merge of #85246 - ayushmishra2005:minor-reactoring, r=petrochenkov

Miner code formatting
This commit is contained in:
Guillaume Gomez 2021-05-15 13:29:51 +02:00 committed by GitHub
commit 57aa0d812a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(..)),
},
));
}