Have declare_table_elements consume its elements argument.
The producer is already allocating a new Vec, so no need to require the consumer to allocate one too.
This commit is contained in:
@@ -190,7 +190,7 @@ pub trait ModuleEnvironment<'data> {
|
||||
table_index: TableIndex,
|
||||
base: Option<GlobalIndex>,
|
||||
offset: usize,
|
||||
elements: &[FunctionIndex],
|
||||
elements: Vec<FunctionIndex>,
|
||||
);
|
||||
/// Declares a memory to the environment
|
||||
fn declare_memory(&mut self, memory: Memory);
|
||||
|
||||
Reference in New Issue
Block a user