From e2cdda67dc0e16b9a482aa3a4bfd5991db06d143 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 15 Jun 2021 16:34:41 +0200 Subject: Refactor grid row layout --- tests/typeset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3