feat(interface-types) Avoid clones by using owned items in an iterator.

`into_iter` owned the item, so no need to clone when moving them in
the stack.
This commit is contained in:
Ivan Enderlin 2020-04-06 07:54:51 +02:00
parent 136518e77e
commit 2992a2d21f

View File

@ -56,8 +56,8 @@ executable_instruction!(
)
})?;
for output in outputs.iter() {
runtime.stack.push(output.clone());
for output in outputs.into_iter() {
runtime.stack.push(output)
}
Ok(())