summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/benches.rs3
-rw-r--r--tests/src/tests.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs
index 2c693c7c..610b89a8 100644
--- a/tests/src/benches.rs
+++ b/tests/src/benches.rs
@@ -72,7 +72,8 @@ fn bench_typeset(iai: &mut Iai) {
let world = BenchWorld::new();
let route = typst::model::Route::default();
let module = typst::model::eval(world.track(), route.track(), &world.source).unwrap();
- iai.run(|| typst::model::typeset(world.track(), &module.content));
+ let content = module.content();
+ iai.run(|| typst::model::typeset(world.track(), &content));
}
fn bench_compile(iai: &mut Iai) {
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index 9dc7aa6d..16dea380 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -432,7 +432,7 @@ fn test_part(
let world = (world as &dyn World).track();
let route = typst::model::Route::default();
let module = typst::model::eval(world, route.track(), source).unwrap();
- println!("Model:\n{:#?}\n", module.content);
+ println!("Model:\n{:#?}\n", module.content());
}
let (mut frames, errors) = match typst::compile(world, source) {