mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
gfx: Use ? on Option more often.
This commit is contained in:
parent
6c37edf602
commit
eb00aa4164
2 changed files with 2 additions and 9 deletions
|
@ -69,11 +69,7 @@ impl FontHandle {
|
|||
/// Cache all the data needed for basic horizontal kerning. This is used only as a fallback or
|
||||
/// fast path (when the GPOS table is missing or unnecessary) so it needn't handle every case.
|
||||
fn find_h_kern_subtable(&self) -> Option<CachedKernTable> {
|
||||
let font_table = match self.table_for_tag(KERN) {
|
||||
Some(table) => table,
|
||||
None => return None
|
||||
};
|
||||
|
||||
let font_table = self.table_for_tag(KERN)?;
|
||||
let mut result = CachedKernTable {
|
||||
font_table: font_table,
|
||||
pair_data_range: 0..0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue