summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/benches.rs3
-rw-r--r--tests/src/tests.rs5
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs
index 3af2db6e..e3c276bc 100644
--- a/tests/src/benches.rs
+++ b/tests/src/benches.rs
@@ -2,13 +2,12 @@ use std::path::{Path, PathBuf};
use comemo::{Prehashed, Track, Tracked};
use iai::{black_box, main, Iai};
-use unscanny::Scanner;
-
use typst::diag::{FileError, FileResult};
use typst::font::{Font, FontBook};
use typst::syntax::{Source, SourceId, TokenMode, Tokens};
use typst::util::Buffer;
use typst::{Config, World};
+use unscanny::Scanner;
const TEXT: &str = include_str!("../typ/benches/bench.typ");
const FONT: &[u8] = include_bytes!("../../fonts/IBMPlexSans-Regular.ttf");
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index 620c1e7b..54afd034 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -11,9 +11,6 @@ use comemo::Prehashed;
use elsa::FrozenVec;
use once_cell::unsync::OnceCell;
use tiny_skia as sk;
-use unscanny::Scanner;
-use walkdir::WalkDir;
-
use typst::diag::{bail, FileError, FileResult};
use typst::font::{Font, FontBook};
use typst::frame::{Element, Frame};
@@ -24,6 +21,8 @@ use typst::util::{Buffer, PathExt};
use typst::{Config, World};
use typst_library::layout::PageNode;
use typst_library::text::{TextNode, TextSize};
+use unscanny::Scanner;
+use walkdir::WalkDir;
const TYP_DIR: &str = "typ";
const REF_DIR: &str = "ref";