Skip to content

Commit

Permalink
take reference to Place directly instead of taking reference to Box<P…
Browse files Browse the repository at this point in the history
…lace>

clippy::borrowed_box
  • Loading branch information
matthiaskrgr committed Sep 10, 2020
1 parent a18b34d commit 6bfe132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/transform/simplify_try.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 6bfe132

Please sign in to comment.