diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-07 20:00:21 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-07 20:00:21 +0100 |
| commit | 68503b9a07b00bce3f4d377bcfe945452de815ea (patch) | |
| tree | 3719ef491b993c59b619ca215963000f4847e78f /src/library/text.rs | |
| parent | 9730e785a885a4ab5fcc52ce705298654f82f9c2 (diff) | |
Redesigned template layout
Diffstat (limited to 'src/library/text.rs')
| -rw-r--r-- | src/library/text.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/library/text.rs b/src/library/text.rs index 4aa1bdec..fb0f7e08 100644 --- a/src/library/text.rs +++ b/src/library/text.rs @@ -19,7 +19,7 @@ use crate::util::{EcoString, SliceExt}; /// A single run of text with the same style. #[derive(Hash)] -pub struct TextNode(pub EcoString); +pub struct TextNode; #[class] impl TextNode { @@ -144,12 +144,6 @@ impl TextNode { } } -impl Debug for TextNode { - fn fmt(&self, f: &mut Formatter) -> fmt::Result { - write!(f, "Text({:?})", self.0) - } -} - /// Strong text, rendered in boldface. pub struct StrongNode; |
