don't clone entire vector for serialization of FunctionManager

This commit is contained in:
Simon Gardling 2022-05-25 12:47:36 -04:00
parent be86d5191e
commit 938077efe5

View File

@ -40,8 +40,7 @@ impl Serialize for FunctionManager {
&self
.functions
.iter()
.cloned()
.map(|(id, func)| (id.value(), func))
.map(|(id, func)| (id.value(), func.clone()))
.collect::<Vec<(u64, FunctionEntry)>>(),
)?;
s.end()