summaryrefslogtreecommitdiff
path: root/src/model/content.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-25 15:50:13 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-25 15:50:13 +0200
commit09aabc3a21e403e0b09a6d6ba517e34a303b217c (patch)
tree590a26bdfe3c5c3c1a48a0271ba54ee3b076a791 /src/model/content.rs
parent649c101f07f6de4791dc9b6091dff4a85112a15c (diff)
Public style entry enum
Diffstat (limited to 'src/model/content.rs')
-rw-r--r--src/model/content.rs18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/model/content.rs b/src/model/content.rs
index 04d5fc5f..a7eb906a 100644
--- a/src/model/content.rs
+++ b/src/model/content.rs
@@ -238,19 +238,11 @@ impl Debug for Content {
Self::Horizontal(kind) => write!(f, "Horizontal({kind:?})"),
Self::Text(text) => write!(f, "Text({text:?})"),
Self::Quote(double) => write!(f, "Quote({double})"),
- Self::Inline(node) => {
- f.write_str("Inline(")?;
- node.fmt(f)?;
- f.write_str(")")
- }
+ Self::Inline(node) => node.fmt(f),
Self::Parbreak => f.pad("Parbreak"),
Self::Colbreak => f.pad("Colbreak"),
Self::Vertical(kind) => write!(f, "Vertical({kind:?})"),
- Self::Block(node) => {
- f.write_str("Block(")?;
- node.fmt(f)?;
- f.write_str(")")
- }
+ Self::Block(node) => node.fmt(f),
Self::List(item) => {
f.write_str("- ")?;
item.body.fmt(f)
@@ -264,11 +256,7 @@ impl Debug for Content {
}
Self::Pagebreak(soft) => write!(f, "Pagebreak({soft})"),
Self::Page(page) => page.fmt(f),
- Self::Show(node) => {
- f.write_str("Show(")?;
- node.fmt(f)?;
- f.write_str(")")
- }
+ Self::Show(node) => node.fmt(f),
Self::Styled(styled) => {
let (sub, map) = styled.as_ref();
map.fmt(f)?;