diff options
Diffstat (limited to 'library/src/lib.rs')
| -rw-r--r-- | library/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/lib.rs b/library/src/lib.rs index ca10837f..41c841f2 100644 --- a/library/src/lib.rs +++ b/library/src/lib.rs @@ -161,7 +161,7 @@ pub fn items() -> LangItems { linebreak: |justify| text::LinebreakNode { justify }.pack(), text: |text| text::TextNode(text).pack(), text_id: NodeId::of::<text::TextNode>(), - text_str: |content| Some(&content.downcast::<text::TextNode>()?.0), + text_str: |content| Some(&content.to::<text::TextNode>()?.0), smart_quote: |double| text::SmartQuoteNode { double }.pack(), parbreak: || text::ParbreakNode.pack(), strong: |body| text::StrongNode(body).pack(), |
