summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-21 16:49:26 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-21 17:11:40 +0100
commitc28d2130ddda3ae9b25cc16c3015087990ccb6e9 (patch)
tree71954529366fd10bbaa42b945eccd9cacba5964f /library
parent1d7e082d1d83d4c7e454a2d08258794d716aea1a (diff)
Don't display functions
Diffstat (limited to 'library')
-rw-r--r--library/src/layout/page.rs2
-rw-r--r--library/src/structure/list.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/page.rs b/library/src/layout/page.rs
index b0e3ff6d..3901740c 100644
--- a/library/src/layout/page.rs
+++ b/library/src/layout/page.rs
@@ -179,7 +179,7 @@ impl Marginal {
Self::Content(content) => Some(content.clone()),
Self::Func(func, span) => {
let args = Args::new(*span, [Value::Int(page as i64)]);
- Some(func.call_detached(world, args)?.display(world))
+ Some(func.call_detached(world, args)?.display())
}
})
}
diff --git a/library/src/structure/list.rs b/library/src/structure/list.rs
index 3f73386c..2a3f3035 100644
--- a/library/src/structure/list.rs
+++ b/library/src/structure/list.rs
@@ -252,7 +252,7 @@ impl Label {
Self::Content(content) => content.clone(),
Self::Func(func, span) => {
let args = Args::new(*span, [Value::Int(number as i64)]);
- func.call_detached(world, args)?.display(world)
+ func.call_detached(world, args)?.display()
}
})
}