Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 30292a6

Browse files
committed
remove unnecessary mut for making exported memory
1 parent ff0c467 commit 30292a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/tinywasm/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl ModuleInstance {
189189
}
190190

191191
/// Get an exported memory by name
192-
pub fn exported_memory<'a>(&self, store: &'a mut Store, name: &str) -> Result<MemoryRef<'a>> {
192+
pub fn exported_memory<'a>(&self, store: &'a Store, name: &str) -> Result<MemoryRef<'a>> {
193193
let export = self.export_addr(name).ok_or_else(|| Error::Other(format!("Export not found: {name}")))?;
194194
let ExternVal::Memory(mem_addr) = export else {
195195
return Err(Error::Other(format!("Export is not a memory: {}", name)));

0 commit comments

Comments
 (0)