diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-22 14:31:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-23 14:53:55 +0100 |
| commit | e1f29d6cb9437a4afb2e4fc4ee10a5b8717ab9fa (patch) | |
| tree | 1ce5f2bd858f6665d3867a2939d4b474c1b70377 /src/library/deco.rs | |
| parent | 2bf32c51bceb2f3a8b7ebea3d7c7d6d96757591b (diff) | |
Rework the core context
Diffstat (limited to 'src/library/deco.rs')
| -rw-r--r-- | src/library/deco.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/deco.rs b/src/library/deco.rs index aac79d05..8c2b5a9a 100644 --- a/src/library/deco.rs +++ b/src/library/deco.rs @@ -26,15 +26,15 @@ impl<const L: DecoLine> DecoNode<L> { /// with the glyphs. Does not apply to strikethrough. pub const EVADE: bool = true; - fn construct(_: &mut Vm, args: &mut Args) -> TypResult<Template> { + fn construct(_: &mut Context, args: &mut Args) -> TypResult<Template> { Ok(Template::show(Self(args.expect::<Template>("body")?))) } } impl<const L: DecoLine> Show for DecoNode<L> { - fn show(&self, vm: &mut Vm, styles: StyleChain) -> TypResult<Template> { + fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Template> { Ok(styles - .show(self, vm, [Value::Template(self.0.clone())])? + .show(self, ctx, [Value::Template(self.0.clone())])? .unwrap_or_else(|| { self.0.clone().styled(TextNode::LINES, vec