summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-06-10 11:00:54 +0200
committerGitHub <noreply@github.com>2024-06-10 09:00:54 +0000
commita68a241570eca6d46f916e3ee103664a4eb79333 (patch)
treeabd0862bf30bd0df0c4a065439e1c3d2d8da6648 /tests/src
parentf91cad7d7829556e24d219e55db7da56a966523f (diff)
Remove `Tracer` (#4365)
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/run.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/src/run.rs b/tests/src/run.rs
index a59ce536..3db03ba4 100644
--- a/tests/src/run.rs
+++ b/tests/src/run.rs
@@ -4,8 +4,7 @@ use std::path::Path;
use ecow::eco_vec;
use tiny_skia as sk;
-use typst::diag::SourceDiagnostic;
-use typst::eval::Tracer;
+use typst::diag::{SourceDiagnostic, Warned};
use typst::foundations::Smart;
use typst::layout::{Abs, Frame, FrameItem, Page, Transform};
use typst::model::Document;
@@ -80,13 +79,12 @@ impl<'a> Runner<'a> {
log!(into: self.result.infos, "tree: {:#?}", self.test.source.root());
}
- let mut tracer = Tracer::new();
- let (doc, errors) = match typst::compile(&self.world, &mut tracer) {
+ let Warned { output, warnings } = typst::compile(&self.world);
+ let (doc, errors) = match output {
Ok(doc) => (Some(doc), eco_vec![]),
Err(errors) => (None, errors),
};
- let warnings = tracer.warnings();
if doc.is_none() && errors.is_empty() {
log!(self, "no document, but also no errors");
}