summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
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)
}
}