diff options
| author | Malo <57839069+MDLC01@users.noreply.github.com> | 2024-11-17 20:08:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 19:08:23 +0000 |
| commit | 5c37a1cfea2a08b08f4af34ba867748fd90c687e (patch) | |
| tree | d5dec4ae7ff0b3238d84224a325eddc1a1427dee /crates/typst-eval/src | |
| parent | 5672cc2a29379f7743f66c46a7192d698a733047 (diff) | |
Use `codex` for symbols (#5421)
Diffstat (limited to 'crates/typst-eval/src')
| -rw-r--r-- | crates/typst-eval/src/markup.rs | 4 | ||||
| -rw-r--r-- | crates/typst-eval/src/math.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-eval/src/markup.rs b/crates/typst-eval/src/markup.rs index e28eb9dd..25ea5751 100644 --- a/crates/typst-eval/src/markup.rs +++ b/crates/typst-eval/src/markup.rs @@ -122,7 +122,7 @@ impl Eval for ast::Escape<'_> { type Output = Value; fn eval(self, _: &mut Vm) -> SourceResult<Self::Output> { - Ok(Value::Symbol(Symbol::single(self.get().into()))) + Ok(Value::Symbol(Symbol::single(self.get()))) } } @@ -130,7 +130,7 @@ impl Eval for ast::Shorthand<'_> { type Output = Value; fn eval(self, _: &mut Vm) -> SourceResult<Self::Output> { - Ok(Value::Symbol(Symbol::single(self.get().into()))) + Ok(Value::Symbol(Symbol::single(self.get()))) } } diff --git a/crates/typst-eval/src/math.rs b/crates/typst-eval/src/math.rs index c61a3251..51dc0a3d 100644 --- a/crates/typst-eval/src/math.rs +++ b/crates/typst-eval/src/math.rs @@ -32,7 +32,7 @@ impl Eval for ast::MathShorthand<'_> { type Output = Value; fn eval(self, _: &mut Vm) -> SourceResult<Self::Output> { - Ok(Value::Symbol(Symbol::single(self.get().into()))) + Ok(Value::Symbol(Symbol::single(self.get()))) } } |
