summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math/class.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/math/class.rs')
-rw-r--r--crates/typst-library/src/math/class.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-library/src/math/class.rs b/crates/typst-library/src/math/class.rs
index fc8a6c79..d2c5192d 100644
--- a/crates/typst-library/src/math/class.rs
+++ b/crates/typst-library/src/math/class.rs
@@ -27,11 +27,11 @@ pub struct ClassElem {
impl LayoutMath for ClassElem {
fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> {
- ctx.style(ctx.style.with_class(self.class()));
- let mut fragment = ctx.layout_fragment(&self.body())?;
+ ctx.style(ctx.style.with_class(*self.class()));
+ let mut fragment = ctx.layout_fragment(self.body())?;
ctx.unstyle();
- fragment.set_class(self.class());
+ fragment.set_class(*self.class());
ctx.push(fragment);
Ok(())
}