diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-01-17 21:50:35 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-01-17 21:53:20 +0100 |
| commit | 6ac71eeaf7b68dab07f75bd1a480810481fa9b73 (patch) | |
| tree | d452e7323200fe56d61a34b91c8b98826d60978c /tests/fuzz/src | |
| parent | 50741209a8f4c5e91d35281eb44b7425b3d022b2 (diff) | |
Add `Page` struct
To get rid of the Meta hack where numbering and things like that are stored in the frame.
Diffstat (limited to 'tests/fuzz/src')
| -rw-r--r-- | tests/fuzz/src/compile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzz/src/compile.rs b/tests/fuzz/src/compile.rs index c6345051..883b9ea3 100644 --- a/tests/fuzz/src/compile.rs +++ b/tests/fuzz/src/compile.rs @@ -67,7 +67,7 @@ fuzz_target!(|text: &str| { let mut tracer = Tracer::new(); if let Ok(document) = typst::compile(&world, &mut tracer) { if let Some(page) = document.pages.first() { - std::hint::black_box(typst_render::render(page, 1.0, Color::WHITE)); + std::hint::black_box(typst_render::render(&page.frame, 1.0, Color::WHITE)); } } comemo::evict(10); |
