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 &self
.functions .functions
.iter() .iter()
.cloned() .map(|(id, func)| (id.value(), func.clone()))
.map(|(id, func)| (id.value(), func))
.collect::<Vec<(u64, FunctionEntry)>>(), .collect::<Vec<(u64, FunctionEntry)>>(),
)?; )?;
s.end() s.end()