diff --git a/crates/typst-layout/src/math/fragment.rs b/crates/typst-layout/src/math/fragment.rs index 2d3d5dc22..d35de18eb 100644 --- a/crates/typst-layout/src/math/fragment.rs +++ b/crates/typst-layout/src/math/fragment.rs @@ -681,8 +681,8 @@ fn glyph_construction(font: &Font, id: GlyphId, axis: Axis) -> Option variants.horizontal_constructions, Axis::Y => variants.vertical_constructions, - }) - .and_then(|constructions| constructions.get(id)) + })? + .get(id) } /// Assemble a glyph from parts.