mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-03 19:28:22 +00:00
Set compiler config to be owned (following wasm-c-api)
This commit is contained in:
@@ -207,8 +207,8 @@ impl CompilerConfig for LLVM {
|
||||
}
|
||||
|
||||
/// Transform it into the compiler.
|
||||
fn compiler(&self) -> Box<dyn Compiler + Send> {
|
||||
Box::new(LLVMCompiler::new(&self))
|
||||
fn compiler(self: Box<Self>) -> Box<dyn Compiler + Send> {
|
||||
Box::new(LLVMCompiler::new(*self))
|
||||
}
|
||||
|
||||
/// Pushes a middleware onto the back of the middleware chain.
|
||||
|
||||
Reference in New Issue
Block a user