diff options
| author | Henry <mail@henrygressmann.de> | 2026-03-19 22:24:56 +0100 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-03-19 23:08:53 +0100 |
| commit | 02a5650a7eda96d08924ec3617d60730e920c467 (patch) | |
| tree | 055f4c78a17651753b2ba42b17ab5c1a899a8fc9 /examples/rust/src/tinywasm.rs | |
| parent | f8f2a71018c8829eb50e818c83d9914a7bcdcd63 (diff) | |
chore: replace magic numbers with expressions
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples/rust/src/tinywasm.rs')
| -rw-r--r-- | examples/rust/src/tinywasm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rust/src/tinywasm.rs b/examples/rust/src/tinywasm.rs index d3b3f8c..11d7637 100644 --- a/examples/rust/src/tinywasm.rs +++ b/examples/rust/src/tinywasm.rs @@ -26,7 +26,7 @@ fn run() -> tinywasm::Result<()> { )?; let instance = module.instantiate(&mut store, Some(imports))?; - let add_and_print = instance.exported_func::<(i32, i32), ()>(&mut store, "add_and_print")?; + let add_and_print = instance.exported_func::<(i32, i32), ()>(&store, "add_and_print")?; add_and_print.call(&mut store, (1, 2))?; Ok(()) } |
