summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-cli/src')
-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 {