diff options
Diffstat (limited to 'src/eval/show.rs')
| -rw-r--r-- | src/eval/show.rs | 8 |
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 { |
