From 671ce3dedd40067bb5cea84fe0739de013827053 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 31 Oct 2022 13:49:10 +0100 Subject: Replace `encode` with `field` --- src/model/content.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/model/content.rs') 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), + 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)?; -- cgit v1.2.3