diff --git a/crates/typst-layout/src/inline/shaping.rs b/crates/typst-layout/src/inline/shaping.rs index 99638be26..743445fbe 100644 --- a/crates/typst-layout/src/inline/shaping.rs +++ b/crates/typst-layout/src/inline/shaping.rs @@ -393,7 +393,7 @@ impl<'a> ShapedText<'a> { pub fn stretchability(&self) -> Abs { self.glyphs .iter() - .map(|g|( g.stretchability().0 + g.stretchability().1).at(g.size)) + .map(|g| (g.stretchability().0 + g.stretchability().1).at(g.size)) .sum() }