remove clone from unwind_trail in copier.rs

This commit is contained in:
Mark Thom
2019-02-19 22:32:25 -07:00
parent bf62fd7f78
commit e66928725a

View File

@@ -195,7 +195,7 @@ impl<T: CopierTarget> CopyTermState<T> {
for (r, value) in self.trail.drain(0 ..) {
match r {
Ref::AttrVar(h) | Ref::HeapCell(h) =>
self.target[h] = value.clone(),
self.target[h] = value,
Ref::StackCell(fr, sc) =>
self.target.stack()[fr][sc] = value.as_addr(0)
}