From f197a447a4aea5f87e9a5a5f04a59fe5b36a82b0 Mon Sep 17 00:00:00 2001 From: damaxwell Date: Tue, 25 Jul 2023 08:26:45 -0800 Subject: [PATCH] Gardening. (#1789) --- crates/typst-library/src/math/fragment.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/typst-library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs index f4efa7f68..8baea9132 100644 --- a/crates/typst-library/src/math/fragment.rs +++ b/crates/typst-library/src/math/fragment.rs @@ -470,13 +470,13 @@ pub enum GlyphwiseSubsts<'a> { impl<'a> GlyphwiseSubsts<'a> { pub fn new(gsub: LayoutTable<'a>, feature: Feature) -> Option { - let ssty = gsub + let table = gsub .features .find(feature.tag) .and_then(|feature| feature.lookup_indices.get(0)) .and_then(|index| gsub.lookups.get(index))?; - let ssty = ssty.subtables.get::(0)?; - match ssty { + let table = table.subtables.get::(0)?; + match table { SubstitutionSubtable::Single(single_glyphs) => { Some(Self::Single(single_glyphs)) }