diff options
| author | Ian Wrzesinski <133046678+wrzian@users.noreply.github.com> | 2025-02-26 15:10:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-26 20:10:36 +0000 |
| commit | cfb3b1a2709107f0f06f89ea25cabc939cec15e5 (patch) | |
| tree | f61f39cc3c1a6eec30d37aa4202d6c599e74b2f7 /crates/typst-eval/src/rules.rs | |
| parent | 52f1f53973414be72bf22c3253ab365f8db067df (diff) | |
Improve clarity of `ast.rs` for newcomers to the codebase (#5784)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: T0mstone <39707032+T0mstone@users.noreply.github.com>
Diffstat (limited to 'crates/typst-eval/src/rules.rs')
| -rw-r--r-- | crates/typst-eval/src/rules.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-eval/src/rules.rs b/crates/typst-eval/src/rules.rs index 646354d4..f4c1563f 100644 --- a/crates/typst-eval/src/rules.rs +++ b/crates/typst-eval/src/rules.rs @@ -45,7 +45,7 @@ impl Eval for ast::ShowRule<'_> { let transform = self.transform(); let transform = match transform { - ast::Expr::Set(set) => Transformation::Style(set.eval(vm)?), + ast::Expr::SetRule(set) => Transformation::Style(set.eval(vm)?), expr => expr.eval(vm)?.cast::<Transformation>().at(transform.span())?, }; |
