summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-03 12:29:35 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-03 12:32:17 +0100
commit29b31c4a5ac4cde311c4d38b3d70130e7d27ba76 (patch)
treefe4e5dbd2166a69af90e69578ad4602725cdb63c /tests/src
parent54962e6dcd002fd27918827996155fd7dc4e1cff (diff)
New import syntax
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) {