From 5c37a1cfea2a08b08f4af34ba867748fd90c687e Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sun, 17 Nov 2024 20:08:23 +0100 Subject: Use `codex` for symbols (#5421) --- crates/typst-eval/src/markup.rs | 4 ++-- crates/typst-eval/src/math.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/typst-eval') 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 { - 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 { - 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 { - Ok(Value::Symbol(Symbol::single(self.get().into()))) + Ok(Value::Symbol(Symbol::single(self.get()))) } } -- cgit v1.2.3