Skip to content

Commit

Permalink
runtime: Fix compiler warning
Browse files Browse the repository at this point in the history
rustc 1.81 produces a warning (see
rust-lang/rust#123748) in a few places. This
change fixes that.
  • Loading branch information
lutter committed Sep 11, 2024
1 parent 51182ca commit 802a428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/test/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl WasmInstanceExt for WasmInstance {
fn invoke_export1_val_void<V: wasmtime::WasmTy>(&mut self, f: &str, v: V) -> Result<(), Error> {
let func = self
.get_func(f)
.typed(&self.store.as_context())
.typed::<V, ()>(&self.store.as_context())
.unwrap()
.clone();
func.call(&mut self.store.as_context_mut(), v)?;
Expand Down Expand Up @@ -525,7 +525,7 @@ async fn run_ipfs_map(
// Invoke the callback
let func = instance
.get_func("ipfsMap")
.typed(&instance.store.as_context())
.typed::<(u32, u32), ()>(&instance.store.as_context())
.unwrap()
.clone();
func.call(
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/src/module/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl WasmInstance {
self.instance
.get_func(self.store.as_context_mut(), handler_name)
.with_context(|| format!("function {} not found", handler_name))?
.typed(self.store.as_context_mut())?
.typed::<(u32, u32), ()>(self.store.as_context_mut())?
.call(
self.store.as_context_mut(),
(value?.wasm_ptr(), user_data?.wasm_ptr()),
Expand Down

0 comments on commit 802a428

Please sign in to comment.