EarlyOtherwiseBranch::run_pass(): don't convert Place to Place (clippy::useless_conversion)

This commit is contained in:
Matthias Krüger 2020-09-22 01:11:45 +02:00
parent 5562bb6d74
commit 2ad46acd7f
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
let not_equal_rvalue = Rvalue::BinaryOp(
not_equal,
Operand::Copy(Place::from(second_discriminant_temp)),
Operand::Copy(Place::from(first_descriminant_place)),
Operand::Copy(first_descriminant_place),
);
patch.add_statement(
end_of_block_location,