Miner code formatting

This commit is contained in:
ayushmishra2005 2021-05-13 10:22:17 +05:30
parent 9daf546b77
commit 0cee527869

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