diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typeset.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index cd58bdab..4b9d26a4 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -317,8 +317,8 @@ fn register_helpers(scope: &mut Scope, panics: Rc<RefCell<Vec<Panic>>>) { } }; - scope.define("f", ValueFunc::new("f", f)); - scope.define("test", ValueFunc::new("test", test)); + scope.def_const("f", ValueFunc::new("f", f)); + scope.def_const("test", ValueFunc::new("test", test)); } fn print_diag(diag: &Spanned<Diag>, map: &LineMap, lines: u32) { |
