summaryrefslogtreecommitdiff
path: root/src/eval/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 23:36:20 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 23:36:20 +0200
commit0c74290519ee999002e9cc99ba3d272d68e1014f (patch)
tree8134b8aeabb9d5af4c50667de6b2c6532c6b8422 /src/eval/mod.rs
parent02b586cc36fad58a622ecb439e1cf3a76a347207 (diff)
Compare functions and templates by identity
Diffstat (limited to 'src/eval/mod.rs')
-rw-r--r--src/eval/mod.rs5
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,
+ }])
}
}