mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 17:59:27 +00:00
Limit the use of clone when handling Compilation object
This commit is contained in:
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user