diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-15 16:34:41 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-15 16:34:41 +0200 |
| commit | e2cdda67dc0e16b9a482aa3a4bfd5991db06d143 (patch) | |
| tree | 7a3ee517b7417c08888eac105ca1431b9d3817cf /tests/typeset.rs | |
| parent | a61ee46ed2d39d7b7b0c14e6c36d224e03532bac (diff) | |
Refactor grid row layout
Diffstat (limited to 'tests/typeset.rs')
| -rw-r--r-- | tests/typeset.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index 420df09c..ed393aee 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -221,7 +221,7 @@ fn test_part( // 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::raw(f64::INFINITY)); + state.page.size = Size::new(Length::pt(120.0), Length::inf()); state.page.margins = Sides::splat(Some(Length::pt(10.0).into())); let mut pass = typst::typeset(loader, cache, Some(src_path), &src, &scope, state); |
