mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 00:00:49 +00:00
cargo fmt
This commit is contained in:
parent
bb8b4960b8
commit
b484ebb848
@ -130,11 +130,7 @@ impl LocalBacking {
|
|||||||
memories: &mut SliceMap<LocalMemoryIndex, Memory>,
|
memories: &mut SliceMap<LocalMemoryIndex, Memory>,
|
||||||
) -> LinkResult<BoxedMap<LocalMemoryIndex, *mut vm::LocalMemory>> {
|
) -> LinkResult<BoxedMap<LocalMemoryIndex, *mut vm::LocalMemory>> {
|
||||||
// For each init that has some data...
|
// For each init that has some data...
|
||||||
for init in module
|
for init in module.info.data_initializers.iter() {
|
||||||
.info
|
|
||||||
.data_initializers
|
|
||||||
.iter()
|
|
||||||
{
|
|
||||||
let init_base = match init.base {
|
let init_base = match init.base {
|
||||||
Initializer::Const(Value::I32(offset)) => offset as u32,
|
Initializer::Const(Value::I32(offset)) => offset as u32,
|
||||||
Initializer::Const(_) => panic!("a const initializer must be the i32 type"),
|
Initializer::Const(_) => panic!("a const initializer must be the i32 type"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user