diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-25 14:13:01 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-25 14:56:37 +0200 |
| commit | 30fdba4356683198a298eebb44e28cb8c191a0e1 (patch) | |
| tree | 3c702ca8ecd3240b25bb3bee9cc26e3b608baef0 /benches | |
| parent | c010cbc17dcbb2f0d6005d21530143bf57cb5871 (diff) | |
Move deps from context to VM
Diffstat (limited to 'benches')
| -rw-r--r-- | benches/oneshot.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/benches/oneshot.rs b/benches/oneshot.rs index fef0e6e1..7a5a3dba 100644 --- a/benches/oneshot.rs +++ b/benches/oneshot.rs @@ -4,7 +4,6 @@ use std::sync::Arc; use iai::{black_box, main, Iai}; use unscanny::Scanner; -use typst::eval::evaluate; use typst::loading::MemLoader; use typst::parse::{TokenMode, Tokens}; use typst::source::SourceId; @@ -88,7 +87,7 @@ fn bench_eval(iai: &mut Iai) { fn bench_layout(iai: &mut Iai) { let (mut ctx, id) = context(); - let module = evaluate(&mut ctx, id, vec![]).unwrap(); + let module = typst::eval::evaluate(&mut ctx, id, vec![]).unwrap(); iai.run(|| typst::model::layout(&mut ctx, &module.content)); } |
