summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-12 21:26:58 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-12 21:26:58 +0200
commitdd4a4545a6b72e48cde5d2483fac5e4e76f6047f (patch)
treed31c99d4b4322be773cbf100acc3d7c2600ebe8c /tests
parent1a70cb6a330990dc0ab373905d12458ef87afbad (diff)
Move main back into src/ 📨
Diffstat (limited to 'tests')
-rw-r--r--tests/typeset.rs (renamed from tests/test_typeset.rs)3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_typeset.rs b/tests/typeset.rs
index 8322dd08..8ba1ed47 100644
--- a/tests/test_typeset.rs
+++ b/tests/typeset.rs
@@ -100,7 +100,8 @@ fn test(name: &str, src: &str, src_path: &Path, loader: &SharedFontLoader) {
let loader = loader.borrow();
let png_path = format!("{}/{}.png", OUT_DIR, name);
- render(&layouts, &loader, 3.0).write_png(png_path).unwrap();
+ let surface = render(&layouts, &loader, 3.0);
+ surface.write_png(png_path).unwrap();
let pdf_path = format!("{}/{}.pdf", OUT_DIR, name);
let file = BufWriter::new(File::create(pdf_path).unwrap());