summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src/compile.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-13 14:04:12 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-13 14:44:45 +0200
commitf9feea3f2972815165b357724a9764a7d32377dc (patch)
treee20fc77431e501d65ad3eb615a1dc73d006d2cb8 /crates/typst-cli/src/compile.rs
parente77d9350140eeaef8b5f5c324eb34a402f581290 (diff)
Bump dependencies
Diffstat (limited to 'crates/typst-cli/src/compile.rs')
-rw-r--r--crates/typst-cli/src/compile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs
index 8cec8953..c2d6ea01 100644
--- a/crates/typst-cli/src/compile.rs
+++ b/crates/typst-cli/src/compile.rs
@@ -271,7 +271,7 @@ impl<'a> codespan_reporting::files::Files<'a> for SystemWorld {
// Try to express the path relative to the working directory.
vpath
.resolve(self.root())
- .and_then(|abs| pathdiff::diff_paths(&abs, self.workdir()))
+ .and_then(|abs| pathdiff::diff_paths(abs, self.workdir()))
.as_deref()
.unwrap_or_else(|| vpath.as_rootless_path())
.to_string_lossy()