summaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-02 20:33:19 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-02 20:33:19 +0100
commit20a1fd8bc7749f859aaef268d0add9c4bc11c4bd (patch)
tree1faeb8c22c45a446310326c90f4b1c912595219d /benches
parentc5e05ac0eacefcb621f8cae7a0ddfa8bd526bf21 (diff)
Remove root node
Diffstat (limited to 'benches')
-rw-r--r--benches/oneshot.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/benches/oneshot.rs b/benches/oneshot.rs
index 8a5cec1b..e3b18390 100644
--- a/benches/oneshot.rs
+++ b/benches/oneshot.rs
@@ -75,8 +75,7 @@ fn bench_eval(iai: &mut Iai) {
fn bench_layout(iai: &mut Iai) {
let (mut ctx, id) = context();
let module = ctx.evaluate(id).unwrap();
- let tree = module.into_root();
- iai.run(|| tree.layout(&mut ctx));
+ iai.run(|| module.template.layout(&mut ctx));
}
fn bench_highlight(iai: &mut Iai) {