summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-05 12:21:10 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-05 12:21:10 +0100
commit1d324235bd80fe8d1fb21b1e73ae9e3dfe918078 (patch)
tree342b3ad9f0ca40dbf6f51c2b29646ca6803fe85a /library/src/math
parent1bb05677faa7bd6566e1231ed2b16547f476b143 (diff)
Make show rule fallible again
Diffstat (limited to 'library/src/math')
-rw-r--r--library/src/math/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs
index 9d25d485..a276908d 100644
--- a/library/src/math/mod.rs
+++ b/library/src/math/mod.rs
@@ -30,7 +30,7 @@ impl MathNode {
}
impl Show for MathNode {
- fn show(&self, _: &mut Vt, _: &Content, styles: StyleChain) -> Content {
+ fn show(&self, _: &mut Vt, _: &Content, styles: StyleChain) -> SourceResult<Content> {
let mut map = StyleMap::new();
map.set_family(FontFamily::new("NewComputerModernMath"), styles);
@@ -44,7 +44,7 @@ impl Show for MathNode {
realized = realized.aligned(Axes::with_x(Some(Align::Center.into())))
}
- realized
+ Ok(realized)
}
}