Refactor function signatures to use slices
This commit is contained in:
@@ -75,7 +75,7 @@ mod tests {
|
||||
.expect("Failed to compile");
|
||||
let linked = env.link(compiled);
|
||||
let func = env.instantiate(linked);
|
||||
let result: Result<Value, String> = Ok((func.func)(vec![]));
|
||||
let result: Result<Value, String> = Ok((func.func)(&[]));
|
||||
|
||||
match result {
|
||||
Ok(Value::Int(20)) => (),
|
||||
|
||||
Reference in New Issue
Block a user