summaryrefslogtreecommitdiff
path: root/src/model/content.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-31 13:49:10 +0100
committerLaurenz <laurmaedje@gmail.com>2022-10-31 13:49:10 +0100
commit671ce3dedd40067bb5cea84fe0739de013827053 (patch)
treea4c990fc16b514f475dfceaa98d988e92ac6cf0c /src/model/content.rs
parent636bdb9e438cfe4fb075a981e0512b9a3dde3e60 (diff)
Replace `encode` with `field`
Diffstat (limited to 'src/model/content.rs')
-rw-r--r--src/model/content.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/content.rs b/src/model/content.rs
index 530862a2..3cdc6341 100644
--- a/src/model/content.rs
+++ b/src/model/content.rs
@@ -7,7 +7,7 @@ use std::sync::Arc;
use comemo::Tracked;
use super::{
- Builder, Dict, Key, Layout, LayoutNode, Property, Regions, Scratch, Selector, Show,
+ Builder, Key, Layout, LayoutNode, Property, Regions, Scratch, Selector, Show,
ShowNode, StyleChain, StyleEntry, StyleMap,
};
use crate::diag::{SourceResult, StrResult};
@@ -73,7 +73,7 @@ pub enum Content {
Page(PageNode),
/// A node that can be realized with styles, optionally with attached
/// properties.
- Show(ShowNode, Option<Dict>),
+ Show(ShowNode),
/// Content with attached styles.
Styled(Arc<(Self, StyleMap)>),
/// A sequence of multiple nodes.
@@ -107,7 +107,7 @@ impl Content {
where
T: Show + Debug + Hash + Sync + Send + 'static,
{
- Self::Show(node.pack(), None)
+ Self::Show(node.pack())
}
/// Create a new sequence node from multiples nodes.
@@ -242,7 +242,7 @@ impl Debug for Content {
Self::Item(item) => item.fmt(f),
Self::Pagebreak { weak } => write!(f, "Pagebreak({weak})"),
Self::Page(page) => page.fmt(f),
- Self::Show(node, _) => node.fmt(f),
+ Self::Show(node) => node.fmt(f),
Self::Styled(styled) => {
let (sub, map) = styled.as_ref();
map.fmt(f)?;