Remove explicit S type from component functions (#5722)
I ended up forgetting this as part of #5275.
This commit is contained in:
@@ -165,7 +165,7 @@ fn thread_options_through_inner() -> Result<()> {
|
||||
.func_wrap("hostfn", |_, (param,): (u32,)| Ok((param.to_string(),)))?;
|
||||
let instance = linker.instantiate(&mut store, &component)?;
|
||||
let result = instance
|
||||
.get_typed_func::<(u32,), (WasmStr,), _>(&mut store, "run")?
|
||||
.get_typed_func::<(u32,), (WasmStr,)>(&mut store, "run")?
|
||||
.call(&mut store, (43,))?
|
||||
.0;
|
||||
assert_eq!(result.to_str(&store)?, "42");
|
||||
|
||||
Reference in New Issue
Block a user