summaryrefslogtreecommitdiff
path: root/crates/cli/src/value_parse.rs
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2026-08-02 18:10:24 +0200
committerGitHub <noreply@github.com>2026-08-02 18:10:24 +0200
commitb6a6cefd5bd8e2e488b03024c18de3cd576d3046 (patch)
treebda5240a18296d258ffa5a142a1f6c9e7bdc0627 /crates/cli/src/value_parse.rs
parentd848efecb9678a3b083eb363a1c8508b812255c0 (diff)
feat: typed function references (#49)
Signed-off-by: Henry <mail@henrygressmann.de> --------- Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/cli/src/value_parse.rs')
-rw-r--r--crates/cli/src/value_parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/cli/src/value_parse.rs b/crates/cli/src/value_parse.rs
index 92c0363..eabbdc4 100644
--- a/crates/cli/src/value_parse.rs
+++ b/crates/cli/src/value_parse.rs
@@ -21,7 +21,7 @@ fn parse_arg(index: usize, ty: WasmType, value: &str) -> Result<WasmValue> {
.parse::<i128>()
.map(|v| WasmValue::V128(v.to_le_bytes()))
.map_err(|e| format_error(index, ty, value, e))?,
- WasmType::RefFunc | WasmType::RefExtern => {
+ WasmType::Ref(_) => {
bail!(
"unsupported CLI argument type at position {}: {}; use the embedding API for reference values",
index + 1,