optimize(env): single arg

This commit is contained in:
2025-05-20 09:47:30 +08:00
parent b4db46d48a
commit d0298ce2a6
8 changed files with 76 additions and 38 deletions

View File

@@ -32,7 +32,7 @@ fn test_expr(expr: &str, expected: Value) {
);
let env = env(&vm);
let value = vm
.eval(prog.top_level.into_iter(), env)
.eval(prog.top_level.into_iter(), env.into())
.unwrap()
.to_public(&vm, &mut HashSet::new());
assert_eq!(value, expected);