From 36b3067c19c8743032a44f888ee48702b88d135b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 10 Jul 2021 13:07:39 +0200 Subject: =?UTF-8?q?Eco=20string=20=F0=9F=8C=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax/node.rs') diff --git a/src/syntax/node.rs b/src/syntax/node.rs index 1fbdb3d8..bb9ff098 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -6,7 +6,7 @@ use super::*; #[derive(Debug, Clone, PartialEq)] pub enum Node { /// Plain text. - Text(String), + Text(EcoString), /// Whitespace containing less than two newlines. Space, /// A forced line break: `\`. @@ -38,7 +38,7 @@ pub struct RawNode { pub lang: Option, /// The raw text, determined as the raw string between the backticks trimmed /// according to the above rules. - pub text: String, + pub text: EcoString, /// Whether the element is block-level, that is, it has 3+ backticks /// and contains at least one newline. pub block: bool, -- cgit v1.2.3