summaryrefslogtreecommitdiff
path: root/library/src/meta/reference.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/meta/reference.rs')
-rw-r--r--library/src/meta/reference.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/src/meta/reference.rs b/library/src/meta/reference.rs
index f05692dd..0603ee4e 100644
--- a/library/src/meta/reference.rs
+++ b/library/src/meta/reference.rs
@@ -80,7 +80,7 @@ impl Show for RefNode {
return self.to_citation(styles).show(vt, styles);
}
- let &[node] = matches.as_slice() else {
+ let [node] = matches.as_slice() else {
bail!(self.span(), if matches.is_empty() {
"label does not exist in the document"
} else {
@@ -102,8 +102,7 @@ impl Show for RefNode {
Smart::Custom(None) => Content::empty(),
Smart::Custom(Some(Supplement::Content(content))) => content.clone(),
Smart::Custom(Some(Supplement::Func(func))) => {
- let args = Args::new(func.span(), [node.clone().into()]);
- func.call_detached(vt.world, args)?.display()
+ func.call_vt(vt, [node.clone().into()])?.display()
}
};