Skip to content

Commit 7f3459a

Browse files
spastorinooli-obk
authored andcommitted
No need to use local.into here
1 parent a9de4f1 commit 7f3459a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ impl<'tcx> Place<'tcx> {
17931793

17941794
impl From<Local> for Place<'_> {
17951795
fn from(local: Local) -> Self {
1796-
Place { local: local.into(), projection: List::empty() }
1796+
Place { local, projection: List::empty() }
17971797
}
17981798
}
17991799

0 commit comments

Comments
 (0)