Less memory allocations at runtime

This commit is contained in:
2026-02-02 21:55:10 +01:00
parent cd8182425a
commit 74fe999496
9 changed files with 146 additions and 457 deletions

View File

@@ -128,7 +128,7 @@ fn forget_removes_word() {
let stack = f.stack();
assert_eq!(stack.len(), 1);
match &stack[0] {
Value::Str(s, _) => assert_eq!(s, "double"),
Value::Str(s, _) => assert_eq!(s.as_ref(), "double"),
other => panic!("expected Str, got {:?}", other),
}
}