summaryrefslogtreecommitdiff
path: root/library/src/text
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/text')
-rw-r--r--library/src/text/mod.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs
index a8164727..c2a67547 100644
--- a/library/src/text/mod.rs
+++ b/library/src/text/mod.rs
@@ -25,7 +25,7 @@ use self::quotes::*;
use crate::prelude::*;
/// A single run of text with the same style.
-#[derive(Debug, Clone, Hash)]
+#[derive(Clone, Hash)]
pub struct TextNode(pub EcoString);
impl TextNode {
@@ -169,6 +169,12 @@ impl TextNode {
}
}
+impl Debug for TextNode {
+ fn fmt(&self, f: &mut Formatter) -> fmt::Result {
+ write!(f, "Text({:?})", self.0)
+ }
+}
+
/// A lowercased font family like "arial".
#[derive(Clone, Eq, PartialEq, Hash)]
pub struct FontFamily(EcoString);