No need to use local.into here

This commit is contained in:
Santiago Pastorino 2019-12-13 16:23:38 -03:00 committed by Oliver Scherer
parent a9de4f11ed
commit 7f3459a3b3

View file

@ -1793,7 +1793,7 @@ impl<'tcx> Place<'tcx> {
impl From<Local> for Place<'_> {
fn from(local: Local) -> Self {
Place { local: local.into(), projection: List::empty() }
Place { local, projection: List::empty() }
}
}