This commit is contained in:
Chris Fallin 2022-11-03 10:59:24 -07:00
parent 71bd0b399d
commit 9ef4064853

View file

@ -176,10 +176,10 @@ impl<'a> Module<'a> {
pub fn exports<'b>(&'b self) -> impl Iterator<Item = &'b Export> + 'b {
self.exports.iter()
}
pub(crate) fn table_mut<'b>(&'b mut self, table: Table) -> &'b mut TableData {
pub fn table_mut<'b>(&'b mut self, table: Table) -> &'b mut TableData {
&mut self.tables[table]
}
pub(crate) fn memory_mut<'b>(&'b mut self, memory: Memory) -> &'b mut MemoryData {
pub fn memory_mut<'b>(&'b mut self, memory: Memory) -> &'b mut MemoryData {
&mut self.memories[memory]
}