mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
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:
parent
136518e77e
commit
2992a2d21f
@ -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(())
|
||||
|
Loading…
Reference in New Issue
Block a user