summaryrefslogtreecommitdiff
path: root/src/eval/show.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-22 14:31:09 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-23 14:53:55 +0100
commite1f29d6cb9437a4afb2e4fc4ee10a5b8717ab9fa (patch)
tree1ce5f2bd858f6665d3867a2939d4b474c1b70377 /src/eval/show.rs
parent2bf32c51bceb2f3a8b7ebea3d7c7d6d96757591b (diff)
Rework the core context
Diffstat (limited to 'src/eval/show.rs')
-rw-r--r--src/eval/show.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval/show.rs b/src/eval/show.rs
index ac0e2378..b0fb8172 100644
--- a/src/eval/show.rs
+++ b/src/eval/show.rs
@@ -6,12 +6,12 @@ use std::sync::Arc;
use super::{StyleChain, Template};
use crate::diag::TypResult;
use crate::util::Prehashed;
-use crate::Vm;
+use crate::Context;
/// A node that can be realized given some styles.
pub trait Show {
/// Realize the template in the given styles.
- fn show(&self, vm: &mut Vm, styles: StyleChain) -> TypResult<Template>;
+ fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Template>;
/// Convert to a packed show node.
fn pack(self) -> ShowNode
@@ -42,8 +42,8 @@ impl ShowNode {
}
impl Show for ShowNode {
- fn show(&self, vm: &mut Vm, styles: StyleChain) -> TypResult<Template> {
- self.0.show(vm, styles)
+ fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Template> {
+ self.0.show(ctx, styles)
}
fn pack(self) -> ShowNode {