mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
take reference to Place directly instead of taking reference to Box<Place>
clippy::borrowed_box
This commit is contained in:
parent
a18b34d979
commit
6bfe132067
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user