Skip to content

Commit 6bfe132

Browse files
committed
take reference to Place directly instead of taking reference to Box<Place>
clippy::borrowed_box
1 parent a18b34d commit 6bfe132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/simplify_try.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ impl<'a, 'tcx> SimplifyBranchSameOptimizationFinder<'a, 'tcx> {
674674
y_bb_idx: BasicBlock,
675675
) -> StatementEquality {
676676
let helper = |rhs: &Rvalue<'tcx>,
677-
place: &Box<Place<'tcx>>,
677+
place: &Place<'tcx>,
678678
variant_index: &VariantIdx,
679679
side_to_choose| {
680680
let place_type = place.ty(self.body, self.tcx).ty;

0 commit comments

Comments
 (0)