summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authordamaxwell <damaxwell@alaska.edu>2023-07-25 08:26:45 -0800
committerGitHub <noreply@github.com>2023-07-25 18:26:45 +0200
commitf197a447a4aea5f87e9a5a5f04a59fe5b36a82b0 (patch)
tree829fd68a746f23fb7646d9c320ed6131f57b7476 /crates
parent8e200c356cbef0e447d01a8c363d0484b988f703 (diff)
Gardening. (#1789)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-library/src/math/fragment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs
index f4efa7f6..8baea913 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<Self> {
- 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::<SubstitutionSubtable>(0)?;
- match ssty {
+ let table = table.subtables.get::<SubstitutionSubtable>(0)?;
+ match table {
SubstitutionSubtable::Single(single_glyphs) => {
Some(Self::Single(single_glyphs))
}