summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/math')
-rw-r--r--library/src/math/mod.rs2
-rw-r--r--library/src/math/tex.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs
index fb53b52d..1ea03d70 100644
--- a/library/src/math/mod.rs
+++ b/library/src/math/mod.rs
@@ -35,7 +35,7 @@ impl Show for MathNode {
let mut realized = self
.clone()
.pack()
- .guard(RecipeId::Base(NodeId::of::<Self>()))
+ .guarded(RecipeId::Base(NodeId::of::<Self>()))
.styled_with_map(map);
if self.display {
diff --git a/library/src/math/tex.rs b/library/src/math/tex.rs
index d7c5493b..ffde719b 100644
--- a/library/src/math/tex.rs
+++ b/library/src/math/tex.rs
@@ -10,7 +10,7 @@ use crate::text::{families, variant, LinebreakNode, SpaceNode, TextNode};
/// Turn a math node into TeX math code.
#[capability]
-pub trait Texify: 'static + Sync + Send {
+pub trait Texify {
/// Perform the conversion.
fn texify(&self) -> EcoString;
}
@@ -25,7 +25,7 @@ impl Texify for Content {
return r"\\".into();
}
- if let Some(node) = self.to::<dyn Texify>() {
+ if let Some(node) = self.with::<dyn Texify>() {
return node.texify();
}