diff options
| author | Henry <mail@henrygressmann.de> | 2026-04-12 21:16:49 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-04-12 21:16:49 +0200 |
| commit | 80cf746b50513af77203f382f5f53bd036087358 (patch) | |
| tree | a9493ec0a69caba0dd82e568b6556340be306e0a /examples/simple.rs | |
| parent | d89729df921d39f81fe8a43990678853deb1edde (diff) | |
feat: remove lifetimes from runtime objects
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples/simple.rs')
| -rw-r--r-- | examples/simple.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple.rs b/examples/simple.rs index 8371992..38839c9 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -15,7 +15,7 @@ fn main() -> Result<()> { let module = Module::parse_bytes(&wasm)?; let mut store = Store::default(); let instance = module.instantiate(&mut store, None)?; - let add = instance.func_typed::<(i32, i32), i32>(&store, "add")?; + let add = instance.func::<(i32, i32), i32>(&store, "add")?; assert_eq!(add.call(&mut store, (1, 2))?, 3); Ok(()) |
