Set compiler config to be owned (following wasm-c-api)

This commit is contained in:
Syrus
2020-12-04 02:39:19 -08:00
parent 7a4ad45c9d
commit 13e6f29c29
48 changed files with 87 additions and 95 deletions

View File

@@ -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.