summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/typeset.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs
index d30d4d7d..7aacf9e0 100644
--- a/tests/typeset.rs
+++ b/tests/typeset.rs
@@ -14,7 +14,9 @@ use typst::diag::Error;
use typst::eval::{State, Value};
use typst::geom::{self, Length, PathElement, Point, Sides, Size};
use typst::image::ImageId;
-use typst::layout::{layout, Element, Frame, Geometry, LayoutTree, Paint, Text};
+#[cfg(feature = "layout-cache")]
+use typst::layout::LayoutTree;
+use typst::layout::{layout, Element, Frame, Geometry, Paint, Text};
use typst::loading::FsLoader;
use typst::parse::Scanner;
use typst::source::SourceFile;