mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 09:19:25 +00:00
Set compiler config to be owned (following wasm-c-api)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user