summaryrefslogtreecommitdiff
path: root/tests/typeset.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typeset.rs')
-rw-r--r--tests/typeset.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs
index 3e83fcb5..78577098 100644
--- a/tests/typeset.rs
+++ b/tests/typeset.rs
@@ -63,8 +63,9 @@ fn main() {
// We want to have "unbounded" pages, so we allow them to be infinitely
// large and fit them to match their content.
let mut state = State::default();
- state.page.size = Size::new(Length::pt(120.0), Length::inf());
- state.page.margins = Sides::splat(Some(Length::pt(10.0).into()));
+ let page = state.page_mut();
+ page.size = Size::new(Length::pt(120.0), Length::inf());
+ page.margins = Sides::splat(Some(Length::pt(10.0).into()));
// We hook up some extra test helpers into the global scope.
let mut std = typst::library::new();