mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 08:10:49 +00:00
fix(clif-backend) Module::new
does not use its argument.
The `Module::new` method requires an argument (`wasm: &[u8]`) that is never used. This patch removes the argument, and updates the code accordingly.
This commit is contained in:
parent
0c62693163
commit
5744f6896f
@ -44,7 +44,7 @@ impl Compiler for CraneliftCompiler {
|
||||
|
||||
let isa = get_isa();
|
||||
|
||||
let mut module = module::Module::new(wasm);
|
||||
let mut module = module::Module::new();
|
||||
let module_env = module_env::ModuleEnv::new(&mut module, &*isa);
|
||||
|
||||
let func_bodies = module_env.translate(wasm)?;
|
||||
|
@ -25,7 +25,7 @@ pub struct Module {
|
||||
}
|
||||
|
||||
impl Module {
|
||||
pub fn new(wasm: &[u8]) -> Self {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
info: ModuleInfo {
|
||||
memories: Map::new(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user