Limit the use of clone when handling Compilation object

This commit is contained in:
ptitSeb
2022-11-09 13:23:44 +01:00
parent b7c185b1a6
commit ecc0c9e547
6 changed files with 55 additions and 40 deletions

View File

@ -268,13 +268,13 @@ impl Compiler for SinglepassCompiler {
#[cfg(not(feature = "unwind"))]
let dwarf = None;
Ok(Compilation::new(
functions.into_iter().collect(),
Ok(Compilation {
functions: functions.into_iter().collect(),
custom_sections,
function_call_trampolines,
dynamic_function_trampolines,
dwarf,
))
debug: dwarf,
})
}
}