Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jan 25, 2025
1 parent 33f432b commit e6e7d85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/externals/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ impl ExternalFunction {
// Currently the JS PDK requires WASI to be enabled; this is not really secure
let mut plugin = Plugin::new(manifest, [], true)?;

plugin.call("register_function", js_function_body)?;
plugin.call(
plugin.call::<&[u8], ()>("register_function", js_function_body)?;
plugin.call::<&[u8], ()>(
"register_parameter_names",
serde_json::to_vec(&param_names)?,
serde_json::to_vec(&param_names)?.as_slice(),
)?;

Ok(Self {
Expand Down

0 comments on commit e6e7d85

Please sign in to comment.