don't clone entire vector for serialization of FunctionManager
This commit is contained in:
parent
be86d5191e
commit
938077efe5
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user