remove clone from unwind_trail in copier.rs
This commit is contained in:
@@ -195,7 +195,7 @@ impl<T: CopierTarget> CopyTermState<T> {
|
|||||||
for (r, value) in self.trail.drain(0 ..) {
|
for (r, value) in self.trail.drain(0 ..) {
|
||||||
match r {
|
match r {
|
||||||
Ref::AttrVar(h) | Ref::HeapCell(h) =>
|
Ref::AttrVar(h) | Ref::HeapCell(h) =>
|
||||||
self.target[h] = value.clone(),
|
self.target[h] = value,
|
||||||
Ref::StackCell(fr, sc) =>
|
Ref::StackCell(fr, sc) =>
|
||||||
self.target.stack()[fr][sc] = value.as_addr(0)
|
self.target.stack()[fr][sc] = value.as_addr(0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user