mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make font template data load fallible. Fixes #12037.
This commit is contained in:
parent
0ae07e07e6
commit
fb943ab54b
4 changed files with 29 additions and 25 deletions
|
@ -95,8 +95,9 @@ impl FontTemplates {
|
|||
}
|
||||
}
|
||||
|
||||
let template = FontTemplate::new(identifier, maybe_data);
|
||||
self.templates.push(template);
|
||||
if let Ok(template) = FontTemplate::new(identifier, maybe_data) {
|
||||
self.templates.push(template);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue