Cleaner option chain

This commit is contained in:
mkorje 2025-06-10 20:55:35 +10:00
parent cfe1806bdb
commit 8f5aaf16a2
No known key found for this signature in database

View File

@ -681,8 +681,8 @@ fn glyph_construction(font: &Font, id: GlyphId, axis: Axis) -> Option<GlyphConst
.map(|variants| match axis {
Axis::X => variants.horizontal_constructions,
Axis::Y => variants.vertical_constructions,
})
.and_then(|constructions| constructions.get(id))
})?
.get(id)
}
/// Assemble a glyph from parts.