diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-08 23:36:20 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-08 23:36:20 +0200 |
| commit | 0c74290519ee999002e9cc99ba3d272d68e1014f (patch) | |
| tree | 8134b8aeabb9d5af4c50667de6b2c6532c6b8422 /src/eval/mod.rs | |
| parent | 02b586cc36fad58a622ecb439e1cf3a76a347207 (diff) | |
Compare functions and templates by identity
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index ba2de8c7..4992f70c 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -229,7 +229,10 @@ impl Eval for Rc<SyntaxTree> { let mut visitor = ExprVisitor { ctx, map: ExprMap::new() }; visitor.visit_tree(self); - vec![TemplateNode::Tree { tree: Rc::clone(self), map: visitor.map }] + Rc::new(vec![TemplateNode::Tree { + tree: Rc::clone(self), + map: visitor.map, + }]) } } |
