EarlyOtherwiseBranch::run_pass(): don't convert Place to Place (clippy::useless_conversion)
This commit is contained in:
parent
5562bb6d74
commit
2ad46acd7f
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
|
||||||
let not_equal_rvalue = Rvalue::BinaryOp(
|
let not_equal_rvalue = Rvalue::BinaryOp(
|
||||||
not_equal,
|
not_equal,
|
||||||
Operand::Copy(Place::from(second_discriminant_temp)),
|
Operand::Copy(Place::from(second_discriminant_temp)),
|
||||||
Operand::Copy(Place::from(first_descriminant_place)),
|
Operand::Copy(first_descriminant_place),
|
||||||
);
|
);
|
||||||
patch.add_statement(
|
patch.add_statement(
|
||||||
end_of_block_location,
|
end_of_block_location,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue