diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-13 13:52:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-13 13:52:52 +0200 |
| commit | 11f1f0818b990be1ed4a16652b7f30bf11159237 (patch) | |
| tree | b52fc6063d8bdec3937ec384cc44ee7a616e51e4 /src/model/show.rs | |
| parent | 3e9c63d685a6ff05a72e5a07d40216ff0ac6ae32 (diff) | |
Pass language to raw show rule
Diffstat (limited to 'src/model/show.rs')
| -rw-r--r-- | src/model/show.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/show.rs b/src/model/show.rs index af87d930..ac73cb76 100644 --- a/src/model/show.rs +++ b/src/model/show.rs @@ -14,7 +14,7 @@ pub trait Show: 'static { fn unguard(&self, sel: Selector) -> ShowNode; /// Encode this node into a dictionary. - fn encode(&self) -> Dict; + fn encode(&self, styles: StyleChain) -> Dict; /// The base recipe for this node that is executed if there is no /// user-defined show rule. @@ -70,8 +70,8 @@ impl Show for ShowNode { self.0.unguard(sel) } - fn encode(&self) -> Dict { - self.0.encode() + fn encode(&self, styles: StyleChain) -> Dict { + self.0.encode(styles) } fn realize(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Content> { |
