diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-08-29 17:35:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-08-29 17:35:35 +0200 |
| commit | a71a2057f286677b5bf2e064fea05024aeca0dd2 (patch) | |
| tree | 716d85481aca232abdb6c2e01a0a545c003f4c6b /crates/typst-library/src/text | |
| parent | 7bdf1f57b09ea605045254013a8200373451baf0 (diff) | |
More type safety for spans
Diffstat (limited to 'crates/typst-library/src/text')
| -rw-r--r-- | crates/typst-library/src/text/raw.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-library/src/text/raw.rs b/crates/typst-library/src/text/raw.rs index 063461a4..1b4a4223 100644 --- a/crates/typst-library/src/text/raw.rs +++ b/crates/typst-library/src/text/raw.rs @@ -490,7 +490,7 @@ fn parse_syntaxes( .0 .iter() .map(|path| { - let id = vm.location().join(path).at(span)?; + let id = vm.resolve_path(path).at(span)?; vm.world().file(id).at(span) }) .collect::<SourceResult<Vec<Bytes>>>()?; @@ -522,7 +522,7 @@ fn parse_theme( }; // Load theme file. - let id = vm.location().join(&path).at(span)?; + let id = vm.resolve_path(&path).at(span)?; let data = vm.world().file(id).at(span)?; // Check that parsing works. |
