summaryrefslogtreecommitdiff
path: root/crates/typst-cli
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-05-13 17:25:43 +0200
committerGitHub <noreply@github.com>2024-05-13 15:25:43 +0000
commit95cd6adf24cb14ede8896fbb0c610432960f4f3a (patch)
treebade59888a5268987eb4fae2dc30ddeaf28ad193 /crates/typst-cli
parent7b656b3deb5f05e6e56d666622643a5cde8c435a (diff)
Factor out `typst-utils` crate (#4125)
Diffstat (limited to 'crates/typst-cli')
-rw-r--r--crates/typst-cli/src/compile.rs2
-rw-r--r--crates/typst-cli/src/world.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs
index bf9afc35..e145a820 100644
--- a/crates/typst-cli/src/compile.rs
+++ b/crates/typst-cli/src/compile.rs
@@ -380,7 +380,7 @@ impl ExportCache {
/// Returns true if the entry is cached and appends the new hash to the
/// cache (for the next compilation).
pub fn is_cached(&self, i: usize, frame: &Frame) -> bool {
- let hash = typst::util::hash128(frame);
+ let hash = typst::utils::hash128(frame);
let mut cache = self.cache.upgradable_read();
if i >= cache.len() {
diff --git a/crates/typst-cli/src/world.rs b/crates/typst-cli/src/world.rs
index 5b4259f4..57aecd42 100644
--- a/crates/typst-cli/src/world.rs
+++ b/crates/typst-cli/src/world.rs
@@ -325,7 +325,7 @@ impl<T: Clone> SlotCell<T> {
// Read and hash the file.
let result = timed!("loading file", load());
- let fingerprint = timed!("hashing file", typst::util::hash128(&result));
+ let fingerprint = timed!("hashing file", typst::utils::hash128(&result));
// If the file contents didn't change, yield the old processed data.
if mem::replace(&mut self.fingerprint, fingerprint) == fingerprint {