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

@ -29,10 +29,8 @@ pub struct SinglepassCompiler {
impl SinglepassCompiler {
/// Creates a new Singlepass compiler
pub fn new(config: &Singlepass) -> Self {
Self {
config: config.clone(),
}
pub fn new(config: Singlepass) -> Self {
Self { config }
}
/// Gets the config for this Compiler