summaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-02 14:48:51 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-02 14:48:51 +0100
commit56342bd972a13ffe21beaf2b87ab7eb1597704b4 (patch)
tree78f9549141e753dde4a938670c54f3fe8695a058 /benches
parent37ac5d966ebaf97ac79c507028cd5b742b510b89 (diff)
Move layout traits into library
Diffstat (limited to 'benches')
-rw-r--r--benches/oneshot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/benches/oneshot.rs b/benches/oneshot.rs
index 1d82f44d..2437b723 100644
--- a/benches/oneshot.rs
+++ b/benches/oneshot.rs
@@ -85,7 +85,7 @@ fn bench_layout(iai: &mut Iai) {
let id = world.source.id();
let route = typst::model::Route::default();
let module = typst::model::eval(world.track(), route.track(), id).unwrap();
- iai.run(|| typst::model::layout(world.track(), &module.content));
+ iai.run(|| typst::library::layout::Layout::layout(&module.content, world.track()));
}
fn bench_render(iai: &mut Iai) {