diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-22 20:12:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-22 20:12:37 +0100 |
| commit | 5992f11b4c33d82fa245205980094accb57a8c76 (patch) | |
| tree | b0043ba4b4cabab2fa8f63ec80f37c9d247e134a /library/src/math | |
| parent | b476de87b7cea1405bf3c051ff8e0ac7c473dbae (diff) | |
Reorganize content type
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/mod.rs | 2 | ||||
| -rw-r--r-- | library/src/math/tex.rs | 4 |
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(); } |
