diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-22 14:31:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-23 14:53:55 +0100 |
| commit | e1f29d6cb9437a4afb2e4fc4ee10a5b8717ab9fa (patch) | |
| tree | 1ce5f2bd858f6665d3867a2939d4b474c1b70377 /tests/typeset.rs | |
| parent | 2bf32c51bceb2f3a8b7ebea3d7c7d6d96757591b (diff) | |
Rework the core context
Diffstat (limited to 'tests/typeset.rs')
| -rw-r--r-- | tests/typeset.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index e0530f9b..1b45a975 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -17,7 +17,7 @@ use typst::loading::FsLoader; use typst::parse::Scanner; use typst::source::SourceFile; use typst::syntax::Span; -use typst::{Context, Vm}; +use typst::Context; const TYP_DIR: &str = "./typ"; const REF_DIR: &str = "./ref"; @@ -267,8 +267,7 @@ fn test_part( ok &= test_reparse(ctx.sources.get(id).src(), i, rng); - let mut vm = Vm::new(ctx); - let (mut frames, mut errors) = match vm.typeset(id) { + let (mut frames, mut errors) = match ctx.typeset(id) { Ok(frames) => (frames, vec![]), Err(errors) => (vec![], *errors), }; |
