summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/meta/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/meta/context.rs')
-rw-r--r--crates/typst-library/src/meta/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/meta/context.rs b/crates/typst-library/src/meta/context.rs
index 3a82a925..59b35577 100644
--- a/crates/typst-library/src/meta/context.rs
+++ b/crates/typst-library/src/meta/context.rs
@@ -37,7 +37,7 @@ impl Show for LocateElem {
#[tracing::instrument(name = "LocateElem::show", skip(self, vt))]
fn show(&self, vt: &mut Vt, _: StyleChain) -> SourceResult<Content> {
Ok(vt.delayed(|vt| {
- let location = self.0.location().unwrap();
+ let location = self.location().unwrap();
Ok(self.func().call_vt(vt, [location])?.display())
}))
}