From c0dbb900e859ea3a14632a59c76174fde8b50d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Tue, 17 Oct 2023 20:53:01 +0200 Subject: Cached export for incremental (#2400) --- tests/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src') diff --git a/tests/src/tests.rs b/tests/src/tests.rs index bdbfd397..1aed32d7 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -437,7 +437,7 @@ fn test( let svg = typst::export::svg_merged(&document.pages, Abs::pt(5.0)); fs::create_dir_all(svg_path.parent().unwrap()).unwrap(); - std::fs::write(svg_path, svg).unwrap(); + std::fs::write(svg_path, svg.as_bytes()).unwrap(); if let Ok(ref_pixmap) = sk::Pixmap::load_png(ref_path) { if canvas.width() != ref_pixmap.width() -- cgit v1.2.3