take reference to Place directly instead of taking reference to Box<Place>

clippy::borrowed_box
This commit is contained in:
Matthias Krüger 2020-09-10 13:08:28 +02:00
parent a18b34d979
commit 6bfe132067
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ impl<'a, 'tcx> SimplifyBranchSameOptimizationFinder<'a, 'tcx> {
y_bb_idx: BasicBlock,
) -> StatementEquality {
let helper = |rhs: &Rvalue<'tcx>,
place: &Box<Place<'tcx>>,
place: &Place<'tcx>,
variant_index: &VariantIdx,
side_to_choose| {
let place_type = place.ty(self.body, self.tcx).ty;